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


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.


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/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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