Results 1 to 2 of 2
I am very new to debian, and have tried to read up on this so I could avoid posting what is (I'm sure) a really simple question... but I can't ...
- 12-05-2006 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 2
A simple Apache2 problem with Options Indexes
I am very new to debian, and have tried to read up on this so I could avoid posting what is (I'm sure) a really simple question... but I can't seem to figure this out.
I have a webserver running apache2 and vhosts, serving out 2 different sites. All I want to do is enable directory listing for two different directories. I know that I should be able to do this in a directory call in /etc/apache2/httpd.conf or using .htaccess in the directory. The problem is that, somehow in my tinkering, directory listing has been turned ON for all directories and I'm having to turn it off using .htaccess.... completely the opposite of what I want.
My /etc/apache2/sites-enabled conf file states:
<Directory />
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Just to be safe, my /etc/apache2/httpd.conf file contains the same directive.
But for some reason, unless I have an .htaccess file in a directory specifying:
Options -Indexes
directory listing is enabled???
What am I missing here?
I don't know why it would make any difference, but the directories in question are symbolically linked to my documentroot.
Assistance is greatly appreciated!
- 12-05-2006 #2Just Joined!
- Join Date
- Dec 2006
- Posts
- 2
sorted it out...
Fixed this by adding the full path to the directory in my directory call. That is:
<Directory "/var/www/">
Rather than
<Directory />
Duh!
Still don't know why apache2 was defaulting to show indexes 'tho. Would that be in etc/apache2/apache.conf?


Reply With Quote
