CentOS installations comes with Apache. It have a default configuration. This configuration shows you a forbidden page if there is no index.html in your request directory. You can show directory content instead of forbidden page with enabling Indexes variable. I will show you how to enable it.
As you thik, It’s in Apache’s configuration file. But not httpd.conf, It’s in a configuration file which one included after httpd.conf, localated in /etc/httpd/conf.d/welcome.conf.
Edit welcome.conf with nano because I’m prefering nano, you can use what you want.
# nano /etc/httpd/conf.d/welcome.conf.
In this file there is a line like this
Options -Indexes
just replace the minus with plus
Options +Indexes
save the file and restart httpd.
service httpd restart
If its still not enabled, open httpd.conf and search for “Options” parameter and add “+Indexes” after it.
ahmet aksoy
Bu site sadece 


home network
0 Responses to “How to Enable Directory Listing in Freshly Installed Apache with CentOS”
Leave a Reply