我正在使用lighttpd运行一个Web服务器,我已经更改了默认文档目录并上传了我的新主页,但默认页面仍然会加载。
我已经清除了浏览器缓存等,甚至从目录中删除了默认页面。什么都没有。
我该如何解决这个问题?
答案 0 :(得分:3)
在lighttpd.conf文件中,找到类似于:
的行index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
"index.lighttpd.html" )
并摆脱',“index.lighttpd.html”'部分,以便它看起来像这样:
index-file.names = ("index.php", "index.html",
"index.htm", "default.htm")
祝你好运 - 我希望这对你有用!