Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7446
  • 博文数量: 1
  • 博客积分: 1650
  • 博客等级: 上尉
  • 技术积分: 20
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-11 23:18
文章分类
文章存档

2008年(1)

我的朋友
最近访客

分类:

2008-05-11 23:54:22

apache server
几个概念Get,Post 概述:

1.GET

当使用这种方法时,CGI程序从环境变量QUERY_STRING获取数据。QUERY_STRING被称为

环境变量,就是这种环境变量把客户端的数据传给服务器。为了解释和执行程序,CGI必须要分析

(处理)此字符串。当你想从服务器获得数据并且不改变服务 器上的数据时,你应该选用GET。但如

果你的字符串长度超过了一定长度,那么还是选用POST方法。

2.POST

使用POST方法时,WEB服务器通过stdin(标准输入),向CGI程序传送数据。服务器在数

据的最后没有使用EOF字符标记,因此程序为了正确的读取stdin,必须使用CONTENT_LENGTH 。当

你发送的数据将改变Web服务器端的数据或者你想给CGI程序传送的数据超过了1024字节,这是

url的极限长度,你应该使用post方法。

小技巧:1.

[root@linux ~]# vi /etc/logrotate.d/httpd 
/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    postrotate
     
 /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
    compress #加上这个可以节省空间#  
}
2.PHP 加速器
   .net
3.Webbaziler  分析器
 
4.awstats  另一个分析器,(据说是高级) 
 
technique! SSL!
1.cd httpd/conf/ssl.key/
 生成一个key
 openssl genrsa -out [name][size]
 openssl genrsa -out server.key 1024
2.建立档案
[root@linux ~]# cd /etc/httpd/conf/ssl.crt
[root@linux ssl.crt]# mv server.crt server.crt.raw
[root@linux ssl.crt]# openssl req -new -x509 -key ../ssl.key/server.key \
> -out server.crt
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:CN
State or Province Name (full name) [Berkshire]:XXXX
Locality Name (eg, city) [Newbury]:XXXX
Organization Name (eg, company) [My Company Ltd]:XXXX
Organizational Unit Name (eg, section) []:XXXX
Common Name (eg, your name or your server's hostname) []:XXXXXXXX
Email Address []:XXXXXX
3.设定apache
vi /etc/httpd/conf.d/ssl.conf
 dafault
go,test

 

阅读(675) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:没有了

给主人留下些什么吧!~~