Web Hosting Talk







View Full Version : Quick Question regarding apache


Speakerguy
05-30-2002, 02:11 AM
I have a quick question regarding apache. I kinda need a quick response so Im posting in here.... sorry :-\

anyway, right now on my server, if someone accesses a directory and there is no index(.html) file, they get a 500 error. Instead of this, how can i make apache generate a list of the directory's contents?

Techark
05-30-2002, 02:19 AM
the httpd.conf under Directory add the Options Indexes

Monte

Speakerguy
05-30-2002, 02:30 AM
thx
=)

for future reference, is it possible to enable this for one directory using a .htaccess file?

god im such a n00b3r =D


EDIT:
Nvm I figured it out
add "Options Indexes" to .htaccess for it to work =)

Techark
05-30-2002, 02:35 AM
Allowoverides directive in the httpd:conf and then set it Indexes off for a dir thru a htaccess file.


Monte