CentOS 安装了 nginx,访问网站目录比如 http://x.com/abc 时,不会自动载入 http://x.com/abc/index.html,而是直接 forbidden 了。
http://x.com/abc
http://x.com/abc/index.html
但如果访问 http://x.com/abc/index.html 就正常,怎么办?
闭关修行中......
Check if this setting exists in Nginx:
index index.html;
Check whether Nginx has r permission on the /abc corresponding file directory.
/abc
Check if this setting exists in Nginx:
Check whether Nginx has r permission on the
/abc
corresponding file directory.