扫码关注官方订阅号
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 就正常,怎么办?
闭关修行中......
检查 Nginx 中有没有这项设置:
index index.html;
检查 Nginx 对 /abc 对应的文件目录有没有 r 权限。
/abc
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
检查 Nginx 中有没有这项设置:
检查 Nginx 对
/abc
对应的文件目录有没有 r 权限。