今天一个客户要装国微系统,提示不支持path_info,百度了很久,修改配置文件如下,可以支持
server {
listen 80;
root /home/users/yqhsyg;
access_log /backup/log/www.nanguaye.cn_log;
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass 127.0.0.1:10073;
include fastcgi.conf;
}
server_name www.nanguaye.com;
error_page 403 403.html;
error_page 404 404.html;
error_page 503 503.html;
error_page 500 500.html;}
转载请注明:果果.IT » Nginx 支持path_info