请问我想知道如何禁用目录列表为我的Cent OS服务器默认ip像8.8.8.8
想知道我将编辑哪个conf文件
这是我将编辑的这个文件/etc/httpd/conf.d/welcome.conf
不,welcome.conf不是。 阅读关于IndexIgnore http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#indexignore和Options -Indexes http://httpd.apache.org/docs/2.0/mod/core.html#options指令。
RHEL派生中的'welcome.conf'文件是作为一个起点。 你应该创build自己的configuration,更适合你的设置。
关于禁用目录索引[2],这是一个简单的谷歌search:
[2] http://www.techiecorner.com/106/how-to-disable-directory-browsing-using-htaccess-apache-web-server/