【发布时间】:2012-12-03 14:49:36
【问题描述】:
我的 Apache Web 服务器突然自动停止提供 index.php 文件。它改为显示目录列表。我尝试了帮助,但没有运气。
我的 htttpd.conf 文件包括
<IfModule module_php5>
AddType application/x-httpd-php .php
</IfMOdule>
和
DirectoryIndex index.php index.html
如果以上都OK,会有什么问题?
【问题讨论】:
-
请注意,标签是独立的。也就是说,结合
directory和index与directoryindex的含义不同。请谨慎选择标签。 -
如果你明确要求
index.php怎么办? -
@Charles,我特别想分别标记目录和索引。但感谢您编辑代码。
-
@zerkms 浏览器在显式输入时显示 index.php。
-
我是这个网站的新手。我以前读过帖子,但直到最近才拥有帐户。所以我不知道问问题的任何常见做法,但会随着时间的推移而学习。我能问一下你为什么从我的问题@Charles 的末尾删除“提前致谢”吗?
标签: php apache directoryindex