龙岩易富通网络科技有限公司

龙岩小程序开发,龙岩分销系统

nginx下pathinfo配置

2015.09.10 | 970阅读 | 0条评论 | 通用代码

 server {

 listen 82;

 server_name localhost;

 root F:/wwwroot/phpcms/;

 index    index.html index.htm index.php;

 

 location ~ \.php {

 fastcgi_pass 127.0.0.1:9000; 

 index index.php;

 include    fastcgi_params;

 fastcgi_param    PATH_INFO $fastcgi_script_name; #加的就是这一句了    

 fastcgi_param    SCRIPT_FILENAME    F:/wwwroot/phpcms$fastcgi_script_name; 

 }


赞 (

发表评论