PCYO 评测夜鸥 六度计算世界

少年强 则 中国强

Nginx最新可用的配置nginx.conf[2012-07-10]

gzip在线压缩

gzip on;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain application/xml;

server {  
    listen       80;  
    server_name  localhost;  
    charset utf-8;  

root c:/app/h;

    location / {  
        index   index.php index.html index.htm;  
        fastcgi_pass   127.0.0.1:9000;  
        fastcgi_index  index.php;  
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
        include        fastcgi_params;  
 
    }

重定向二级目录,自动加反斜杠

if (-d $request_filename){ rewrite ^/(.*)([^/])$ http://dafe56f05255cc77f840acc0b8a7e8c421$2/permanent; }

本原创文章未经允许不得转载 | 当前页面:PCYO 评测夜鸥 六度计算世界 » Nginx最新可用的配置nginx.conf[2012-07-10]

评论