在nginx和php上访问被拒绝
发布时间:2020-12-15 11:21:14 所属栏目:Nginx 来源:互联网
导读:使用nginx web服务器和php. nginx正在工作,我看到欢迎来到nginx!但是在尝试访问php页面时我得到“访问被拒绝”.我还安装了php-fastcgi.这是我的nginx默认conf:# redirect server error pages to the static page /50x.html # error_page 500
使用nginx web服务器和php. nginx正在工作,我看到’欢迎来到nginx!’但是在尝试访问php页面时我得到“访问被拒绝”.我还安装了php-fastcgi. 这是我的nginx默认conf:
我在/etc/php-fpm.d/www.conf中激活了security.limit_extensions = .php .php3 .php4 .php5 .html和listen = /var/run/php5-fpm.sock,在/中激活了cgi.fix_pathinfo = 0等/ PHP5 / FPM / php.ini中 我重启了nginx和php5-fpm. 谢谢你的帮助. 最佳答案 如果您有次要位置,请这样做
这两个参数是魔术酱: (编辑:4S站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 使用NGINX的WAF owasp modsecurity crs中“尚不支持SecColl
- ruby-on-rails – 当从私有NIC访问时,Rails显示IP为127.0.0
- django – 使用proxy_pass的nginx位置路径
- nginx-启用了ngx_http_realip_module的白名单cloudflare Ip
- 在url中使nginx check参数
- node.js – 你应该如何处理auth并在微服务之间共享用户信息
- 检查在nginx上访问我网站的IP
- ruby-on-rails-配置文件中的NGINX和环境变量
- amazon-web-services – 为什么我得到ElasticBeanstalk ::
- Moodle 2.3与Nginx vs斜杠参数重写