I am trying to put a simple .htaccess with "deny from all" in phpmyadmin directory (from the default xampp installation), but it does not make any difference... The directory is still available through the web. The .htacess file is the right one and the rights are fine, because if I add DirectoryIndex to the same file, it is processed correctly.

AllowOverride is set:

<Directory "/opt/lampp/phpmyadmin">
#AllowOverride AuthConfig Limit
AllowOverride All
Order allow,deny
Allow from all
</Directory>

So why doesn't it load? UPDATE: changed from deny,allow to allow,deny, still same result...

link|improve this question
feedback

1 Answer

Your Order is set to deny,allow; Allow directives (such as the Allow from all that you have there) take precedence over Deny directives.

Change your order in either this <Directory> block or in the .htaccess file itself.

By the way, why are you doing this in .htaccess when you already have a perfectly good <Directory> block covering the phpmyadmin directory?

link|improve this answer
Tried that, it still displays! The order is set to allow,deny in both <directory> and htaccess. I played with the order before, and to no avail. I want the config in .htaccess to be able to change it without restarting the server. – Cray Oct 31 '11 at 0:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.