Nginx不支持url的pathinfo,解决方法之一是配置伪静态 代码 location / {if (!-e $request_filename){rewrite ^(.*)$ /index.PHP?s=$1 last;
Nginx不支持url的pathinfo,解决方法之一是配置伪静态
代码
location / {if (!-e $request_filename){rewrite ^(.*)$ /index.PHP?s=$1 last; break;}}
配置位置
本地phpstudy
宝塔
或者直接在nginx.conf配置文件修改
来源地址:https://blog.csdn.net/zxz901126/article/details/128309292
--结束END--
本文标题: nginx + thinkphp解决访问控制器报404/403
本文链接: https://www.lsjlt.com/news/384707.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0