Page 1 of 1

Disable directory listing

PostPosted: 05. January 2010 11:28
by ASnet0007
When I type an address of a folder that doesn't have an index.html inside apache displays the contents of that folder. I did do a google search and found that I can create a .htaccess file, but it looks like I would need to do this for all folders and I have alot of folders.

I am very new to webservers but is it possible to disable directory listing on all folders in my site?

Thanks

Re: Disable directory listing

PostPosted: 05. January 2010 11:33
by Izzy
What version of XAMPP?

Are all your web site folders in the \xampp\htdocs folder?

Re: Disable directory listing

PostPosted: 05. January 2010 11:39
by Stepke-DSL
You just need to look for the file httpd.conf and edit this file.
Search for Indexes in this file and set it to -Indexes.
Restart Apache and then directory listing is switched off for all your folders.

Re: Disable directory listing

PostPosted: 05. January 2010 11:56
by ASnet0007
Thanks for very fast reply.

-Indexes worked.

Cheers