配置nginx使之支持pathinfo

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/nineteen73/article/details/50989097

server {
listen 80;
server_name 101.200.156.147;

rewrite_log on;

root /alidata/www/game;
index index.php index.html index.htm;

location / {
index index.php index.html index.htm;
}

location ~ .php(|/) {  
   fastcgi_pass 127.0.0.1:9000;  
   fastcgi_index index.php;  
   fastcgi_split_path_info ^(.+.php)(.*)
;
fastcgi_param PATH_INFO fastcgipathinfo;fastcgiparamSCRIPTFILENAMEdocument_root$fastcgi_script_name;
include fastcgi_params;
}
}

展开阅读全文

没有更多推荐了,返回首页