本站使用了 Pjax 等基于 JavaScript 的开发技术,但您的浏览器已禁用 JavaScript,请开启 JavaScript 以保证网站正常显示!

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; }


Offer

推广

 继续浏览关于 的文章

 本文最后更新于:2014/10/24 17:55:30,可能因经年累月而与现状有所差异

 引用转载请注明:诗恩有趣cnfunny - 有趣的 > 杂谈 > Nginx最新可用的配置nginx.conf[2012-07-10]