Viewing directory contents.

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

Viewing directory contents.

Postby robbie » 30. April 2006 03:28

Hello,

I was wanting to be able to view the content of a directory. I placed the directory in the security/htdocs area, so it is password protected, but I am unable to view the contents of the folder.

The path to the directory: C:\Files\xampp\security\htdocs\directory

This way it is password protected. How do I allow everything inside "directory" to be shown, and nothing outside?

Thanks
robbie
 
Posts: 2
Joined: 30. April 2006 03:16

Found the answer!

Postby robbie » 30. April 2006 04:13

Add this to the httpd.conf

# Allow access to secure directory
<Directory "C:/Files/xampp/security/htdocs/dirctory">
# -Indexes means Do not show directory contents
# +Indexes means Do show directory contents
# Options -Indexes
Options +Indexes
</Directory>
robbie
 
Posts: 2
Joined: 30. April 2006 03:16


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests