Disable directory listing

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Disable directory listing

Postby ASnet0007 » 05. January 2010 11:28

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
ASnet0007
 
Posts: 7
Joined: 15. July 2009 14:43

Re: Disable directory listing

Postby Izzy » 05. January 2010 11:33

What version of XAMPP?

Are all your web site folders in the \xampp\htdocs folder?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Disable directory listing

Postby Stepke-DSL » 05. January 2010 11:39

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.
Stepke-DSL
 
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux

Re: Disable directory listing

Postby ASnet0007 » 05. January 2010 11:56

Thanks for very fast reply.

-Indexes worked.

Cheers
ASnet0007
 
Posts: 7
Joined: 15. July 2009 14:43


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 77 guests