wdCP v3.2.7 如何支持pathinfo

浏览:509 发布日期:2017/06/30 分类:ThinkPHP5专区
wdCP v3.2.7 如何支持pathinfo
NGINX环境
贴出conf配置


server {
listen 11.45.223.256:80;
root /www/web/baidu/public_html;
server_name www.baidu.com baidu.com;
index index.html index.php index.htm;
location ~ \.php(.*)$ {
fastcgi_pass unix:/tmp/php-54-cgi.sock;
fastcgi_index index.php;
fastcgi_param script_FILENAME $DOCUMENT_ROOT$fastcgi_script_name;
fastcgi_param PATH_INFO $2;
include fcgi.conf;
}
location ~ /\.ht {
deny all;
}
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>