Nginx(PHP/fastcgi)的PATH_INFO问题
生活随笔
收集整理的這篇文章主要介紹了
Nginx(PHP/fastcgi)的PATH_INFO问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
引用:
http://www.laruence.com/2009/11/13/1138.html?
server {listen 80;server_name localhost;index index.html index.htm index.php;root /alidata/www/pro;location ~ .*\.(php|php5)?${#fastcgi_pass unix:/tmp/php-cgi.sock;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fastcgi.conf;}?
location ~ .*\.(php|php5){#fastcgi_pass unix:/tmp/php-cgi.sock;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fastcgi.conf;fastcgi_param PATH_INFO $fastcgi_script_name;}?
總結
以上是生活随笔為你收集整理的Nginx(PHP/fastcgi)的PATH_INFO问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 异常处理汇总-开发工具
- 下一篇: javascript 常用校验代码 2