Show files in a directory without index.html

merlinsilk

Verified User
Joined
Feb 16, 2009
Messages
32
Hi,
I want to have a directory on my site that hows the files in that directory - there is no index.html file in that directory.

Now, the standard configuration contains a
<Directory /home/usr/domains/dom.org/public_html>
Options +Includes -Indexes

and so I get an error because index.html is not found.

So, I tried to add a custom httpd directive to the domain like for my directory 'a'

<Directory /home/usr/domains/dom.org/public_html/a>
Options +Indexes
</Directory>

but that does not do the job. I guess the later directive with the -Indexes overwrites the now one because it comes later???

Anybody with an idea how I can handle this?

Thanks
Merlin
 
try adding this in the user's own httpd.conf file, after the existing
Directory option in there

directory sections are processed in the order shortest path->longest path,
unless they're in virtualhost sections, which are always processed last to allow override of any other behaviour.

re-start httpd and it should work
 
Just create a .htacess in the folder you want with Options +Indexes
 
Back
Top