龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

nginx下pathinfo配置

2015.09.10 | 752閱讀 | 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; 

 }


贊 (

發(fā)表評論