403 Forbidden:nginx阻止了默认页面 [英] 403 Forbidden: nginx is blocking default page

查看:761
本文介绍了403 Forbidden:nginx阻止了默认页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我进入我的网站example.com,我从nginx收到403 Forbidden错误,但没有出现在example.com/index.html上(默认为索引文件).我在CentOS 6.9上使用Plesk Onyx 17.0.17.我的网站空间中的所有其他文件均正确加载.仅在透明域example.com上它不起作用.我有默认的nginx配置.

If I go to my website example.com I get an 403 Forbidden error from nginx but not on example.com/index.html (the indexfile is default). I use Plesk Onyx 17.0.17 on CentOS 6.9. Every other file in my webspace is loading correctly. Only on the clear domain example.com it is not working. I have the default nginx configuration.

https://example.com = 403禁止; https://example.com/index.html =工作

https://example.com = 403 Forbidden; https://example.com/index.html = working

推荐答案

我解决了这个问题.我在PHP设置(Plesk)中从FPM更改为FastCGI. Plesk PHP设置(屏幕截图)

I solved the problem. I changed from FPM to FastCGI in the PHP-Settings (Plesk). Plesk PHP-Settings (Screenshot)

这篇关于403 Forbidden:nginx阻止了默认页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆