关于Linux的Web服务器的index.html和default.html

关于Linux的Web服务器的index.html和default.html,第1张

定位 httpd.conf到

#

# DirectoryIndex: sets the file that Apache will serve if a directory

# is requested.

#

<IfModule dir_module>

DirectoryIndex index.php index.html

</IfModule>

将 default.html添加到 DirectoryIndex一行的后面

index是目录的意思,index.html其实本意是导航页,也就是在这个页面上包含了网站上的基本连接,差不多主页都有这个特点,

是可以改的,但改了之后,如果你是搭建网站服务的,就发现首先找不到的情况,报错404


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8712760.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-20
下一篇 2023-04-20

发表评论

登录后才能评论

评论列表(0条)

保存