403 Forbidden: nginx is blocking default page

ε祈祈猫儿з 提交于 2020-01-06 06:58:26

问题


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 Forbidden; https://example.com/index.html = working


回答1:


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



来源:https://stackoverflow.com/questions/47839169/403-forbidden-nginx-is-blocking-default-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!