Forum Moderators: phranque
DirectoryIndex index.php
deny from all
<FilesMatch "^(index\.php)?$">
order allow,deny
allow from all
</FilesMatch>
allow from all
AuthType Basic
AuthName "graphics"
AuthUserFile "C:/xampp/htdocs/.htpasswds/public_html/graphics/passwd"
require valid-user
Options +Indexes ##apply to all child directories
IndexOptions -FancyIndexing ##apply to all child directories
AuthType Basic
AuthName "candy"
AuthUserFile "C:/xampp/htdocs/.htpasswds/public_html/graphics/candy/passwd"
require valid-user
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
exampleurl
20/03/2011 7:53:03 AM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
Options -Indexes
allow from all
AuthType Basic
AuthName "candy"
AuthUserFile "C:/xampp/htdocs/.htpasswds/public_html/graphics/candy/passwd"
require valid-user
Options +Indexes
IndexOptions -FancyIndexing Options +Indexes setting in all directories where it is not specifically denied, therefore, I had to add it at web root level). DirectoryIndex index.html index.php
deny from all
<FilesMatch "^(index\.php)?$">
order allow,deny
allow from all
</FilesMatch>
#Disable directory indexing everywhere it's not specifically enabled
Options -Indexes allow from all
AuthType Basic
AuthName "graphics"
AuthUserFile "C:/xampp/htdocs/.htpasswds/public_html/graphics/passwd"
require valid-user
Options +Indexes
IndexOptions -FancyIndexing AuthType Basic
AuthName "candy"
AuthUserFile "C:/xampp/htdocs/.htpasswds/public_html/graphics/candy/passwd"
require valid-user