Im trying to protect a directory in my web server with password, or by allowing a few internal IPs. the problem is that even when I follow the tutorials, it doesnt works.
Im using virtual host and I add in the VH config this:
Code:
<Directory "/var/www/gh/administrator">
AuthType basic
AuthName "prompt"
AuthUserFile .htpass
Require valid-user
</Directory>
But it keeps asking for the password again and again. I have tried also adding
Code:
AuthGroupFile /etc/apache2/group
Require group MEMBERS
</Directory>
but it is the same
If I try to deny external IPs with this:
Code:
<Directory "/var/www/gh/administrator">
Allow from 192.168.1.7
Order deny, allow
Deny form all
</Directory>
Simply forbids all IPS. Any idea about how to deal with this?