This page needs to be cached! Bug Report Hit! Nginx最新可用的配置nginx.conf[2012-07-10] - PCYO - 你是谁的,谁是谁,谁为谁憔悴

PCYOPCYO

飞鸟

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://$host/$1$2/permanent; }

本原创文章未经允许不得转载 | 当前页面:PCYO » Nginx最新可用的配置nginx.conf[2012-07-10]

评论

This page loaded in 0.001524 seconds