Nginx
永仔
IT人
展开
-
nginx开启pathinfo
写法一:在location ~ .php下加入如可字段即可fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;fastcgi_param PATH_INFO $fastcgi_path_info;fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;重启nginx原创 2013-03-08 16:21:56 · 1855 阅读 · 0 评论 -
Nginx.conf介绍
<!--blockquote {background:none repeat scroll 0 0 transparent; border:2px solid #EFEFEF; color:#333333; margin-bottom:10px; margin-left:10px; margin-top:10px; padding:5px 10px}-->转载 2013-01-07 11:59:33 · 437 阅读 · 0 评论 -
开启Nginx的目录文件列表功能
ngx_http_autoindex_module 此模块用于自动生成目录列表,ngx_http_autoindex_module只在 ngx_http_index_module模块未找到索引文件时发出请求.nginx默认是不允许列出整个目录的。开启目录列表:打开nginx.conf文件,在location server 或 http段中加入autoindex on; h转载 2013-04-18 23:48:10 · 619 阅读 · 0 评论