Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Pls I would like to know how to disable directory listing for my Cent O.S server default i.p like

Would like to know which of the conf file that I would edit

Is it this file /etc/httpd/conf.d/welcome.conf that I would edit

share|improve this question

2 Answers 2

No, welcome.conf isn't that. Read about IndexIgnore http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#indexignore and Options -Indexes http://httpd.apache.org/docs/2.0/mod/core.html#options directives.

share|improve this answer

The 'welcome.conf' file in RHEL derivates is meant as a starting point. You should probably create your own config, more fit for your setup.

Regarding disabling directory index[2], this is a simple google search away:


[2] http://www.techiecorner.com/106/how-to-disable-directory-browsing-using-htaccess-apache-web-server/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.