HOWTO: allow Apache access from IP without password using htaccess
Very straightforward. Just write these lines in your VirtualHost, Location or Directory configuration.
Order deny,allow Deny from all AuthName "htaccess password prompt" AuthUserFile /path/to/.htpasswd AuthType Basic Require valid-user Allow from 172.17.10.1 Satisfy Any
Easy, isn’t it? Anyway If you have any problem, drop me a comment or a mail.



stefano11 3:47 pm on October 19, 2012 Permalink |
it works correctly also if you write only:
Deny from all
Allow from 172.17.10.1
Ciao boro!