11lxm 发表于 2017-1-13 06:18:09

如何在apache中设置访问目录后进入的默认页面

我在设置禁止显示文件列表后发现访问有index.php文件的文件夹时无法找到index.php
解决:
找到apache的配置文件httpd.conf后找到
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>
在其中添加index.php,搞定.
页: [1]
查看完整版本: 如何在apache中设置访问目录后进入的默认页面