2012年6月5日

让 nginx 提供 PATH_INFO,并实现 PATH_INFO 重写

摘要: 我采用nginx + php-fpm的配置,nginx默认情况下,不提供PATH_INFO,通过以下设置,可以让 nginx 提供 PATH_INFO,实现 PATH_INFO 重写: 1 server { 2 listen 80; 3 server_name www.sample.com; 4 root /www; 5 index index.php index.html; 6 location / { 7 index index.php index.html index.htm; 8 9 #以下部分实现重写10 ... 阅读全文

posted @ 2012-06-05 11:52 还是刀哥靠谱 阅读(619) 评论(0) 推荐(0) 编辑

导航