Forum Moderators: phranque

Message Too Old, No Replies

.htaccess and generated indexes

         

Cyph3r

9:04 am on Aug 12, 2005 (gmt 0)



Hello everybody,
I just managed to get a secured folder using htaccess and htpasswd.
Now, it works as long as there is an index.html in the folder and subfolders, but when I want to show the good old automatic generated index, I get a 'Forbidden'.
Can I add a specific attribute into my .conf file at DirectoryIndex, so I don't have to create my own indexes?

Thanx in advance,
Cyph3r

ChadSEO

2:24 pm on Aug 12, 2005 (gmt 0)

10+ Year Member



Cyph3r,

Welcome to WebmasterWorld!

In your .htaccess file, if you add the following line, it should allow the file-listing index:

Options +Indexes

Make sure the include the + sign, so that you are adding an option, and not resetting all of them. You can also add this value to the httpd.conf file. More information can be found in the Apache documentation: [httpd.apache.org ]

Chad