Apache, listing files in directorys.

jsbush

Diamond Member
Nov 13, 2000
3,871
0
76
Anyone know where the command is to make apache list files in directorys that have no index files?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
In the <Directory> listing in httpd.conf there is an option to either turn this on or off.
 

jsbush

Diamond Member
Nov 13, 2000
3,871
0
76
Alright thanks. But I just realized that it's when I add my virtual hosts that the directory indexes doesn't work anymore. I tried adding it in the options for that virtual host but it didn't help.


<VirtualHost *>
Options Indexes FollowSymLinks MultiViews
ServerName www.domain.com
DocumentRoot /www/mainpage
</VirtualHost>
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
the Options keyword isn't valid inside a VirtualHost directive, I'm surprised apache even starts with that their.
 

jsbush

Diamond Member
Nov 13, 2000
3,871
0
76
That was just something I tried. Yes apache did start with that there.


Any idea's of what I can do to get it to list with virtual hosts?