在访问lnmp项目的某个方法时页面显示:Access denied.

问答中心分类: Nginx在访问lnmp项目的某个方法时页面显示:Access denied.
wuy asked 6 年 ago

在访问项目的某个方法时 页面显示:Access denied. nginx报错如下 2018/08/10 09:40:54 [error] 11472#0: *1 FastCGI sent in stderr: "Access to the script '/data/wwwroot/xxx/index.php/home/login' has been denied (see security.limit_extensions)" while reading response header from upstream, client: 117.28.xx.xx, server: xx.aaa.com, request: "GET /home/login HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-cgi.sock:", host: "xx.aaa.com"

Question Tags:

1 Answers
oneinstack answered 6 年 ago
可能是nginx伪静态不对,参考自己本地测试nginx配置文件:/usr/local/nginx/conf/vhost/xx.aaa.com.conf