lighttpd默认页面不会消失

时间:2011-05-07 20:44:43

标签: webserver lighttpd

我正在使用lighttpd运行一个Web服务器,我已经更改了默认文档目录并上传了我的新主页,但默认页面仍然会加载。

我已经清除了浏览器缓存等,甚至从目录中删除了默认页面。什么都没有。

我该如何解决这个问题?

1 个答案:

答案 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")
祝你好运 - 我希望这对你有用!