Today I struggled a little bit to make directory index module working.
I'm on Centos.
Installed apache (httpd) rpm.
No changes to configuration. Nothing.
I have created a conf file /etc/httpd/conf.d/my.conf
Alias /images "/var/www/images"
<Directory "/var/www/images">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
I have created the /var/www/images directory.
In this directory I don't want to put any html page. I want to use the Apache autoindex module to serve a list of files contained in this directory.
WTF autoindex not working...
And in the logs /var/log/httpd/error_log you can read
[Thu Jan 03 03:44:05 2013] [error] [client 192.168.56.1] Directory index forbidden by Options directive: /var/www/images/
The problem was that in /etc/httpd/conf.d/welcome.conf there was
Options -Indexes
So:
- you can delete such file
- you can change in +Indexes
No comments:
Post a Comment