OS X Lion Server - Apache问题 - index.html.en

时间:2011-09-21 15:12:34

标签: macos apache osx-lion

我今天在我的apache配置中添加了一些其他站点,但默认文档根目录应该提供“It Works”index.html.en apache默认页面。但是我必须偶然改变一些东西,因为它现在默认显示目录列表?如果我导航到index.html.en它成功加载,但默认情况下,例如当我输入127.0.0.1时。 我确定.en语言文件是由httpd-languages.conf解决的,我加倍检查文件依赖项是否包含在httpd.conf'mod_mime'和& 'mod_negotiation模块'。

这个问题不应该让我感到烦恼,但我想尽可能找到原因?

1 个答案:

答案 0 :(得分:2)

通过输入:

指定您的DirectoryIndex
DirectoryIndex index.html.en

在httpd.conf或.htaccess文件中。