2011-09-21 91 views
2

我今天在apache配置中添加了一些额外的网站,但是默认的文档根目录应该服务于“It Works”index.html.en apache默认页面。然而,我必须改变一些意外,因为它现在默认显示目录列表,而不是?如果我导航到index.html.en,它会成功加载,但在我输入127.0.0.1时例如不会默认加载。 我确信.en语言文件是通过httpd-languages.conf解析的,我已经翻了一番,确认文件依赖包含在httpd.conf'mod_mime'&'mod_negotiation'中。OS X Lion服务器 - Apache问题 - index.html.en

问题不应该打扰我很多,但如果可能的话,我想发现原因?

回答

1

通过把指定您的DirectoryIndex:

DirectoryIndex index.html.en 
在httpd.conf或.htaccess文件