Ubuntu 22.04环境下Apache无法识别index.html为默认首页的问题求助
Ubuntu 22.04环境下Apache无法识别index.html为默认首页的问题求助
各位好,我在Vultr上搭了个Ubuntu 22.04的LAMP实例,目前还没改过任何配置,但遇到了个奇怪的问题:明明DirectoryIndex看起来配置是对的,可index.html就是不被当成目录的默认文档。
具体现象:
- 可以正常访问:
https://website.com/resume/index.html - 无法正常访问:
https://website.com/resume/
我用grep命令查询了所有包含DirectoryIndex的配置内容,结果如下:
root@mine:/etc# grep -r "DirectoryIndex" apache2/mods-available/dir.conf: DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm apache2/sites-available/http-le-ssl.conf: DirectoryIndex index.php index.html apache2/sites-available/http.conf: DirectoryIndex index.php index.html apache2/sites-available/https.conf: DirectoryIndex index.php index.html
有没有大佬能帮忙看看这种情况该怎么解决呀?
备注:内容来源于stack exchange,提问作者mmcglynn
相关产品推荐
相关产品推荐

