标题:
[求助]
wdCP v3.2.13下的thinkphp5的pathinfo怎么开启?
[打印本页]
作者:
heimao2001
时间:
2017-10-9 15:07
标题:
wdCP v3.2.13下的thinkphp5的pathinfo怎么开启?
如题,怎么开启pathinfo? 我试了网上一大堆教程,都不行。真是令人蛋疼啊!
作者:
lnlingyuan
时间:
2017-10-27 08:57
楼主解决了么
作者:
jiangyouhong
时间:
2018-6-19 22:41
修改为:server {
listen 80;
root /home/wwwroot/fangwei/public_html/public;
server_name www.xxx.com;
index index.php;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 503 /errpage/503.html;
location ~ \.php(.*)$ {
fastcgi_pass unix:/tmp/php-56-cgi.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri $uri/ /?$args;
}
}
欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/)
Powered by Discuz! 7.2