Is there a simple way to set Apache directives that would:
- Allow access without password from specified IP
- Ask for password from any other IP
I'm looking for a way to achieve this by editing the directives, not by advanced configuration such as setting up new handlers.
I've tried the configuration suggested by Apache documentation and another forum post but it just seems to allow all access regardless of IP. The configuration I've tried is this:
AuthType Basic
AuthName "Restricted"
AuthUserFile /etc/apache2/restricted_htpasswd
Require valid-user
Allow from [IP]
Satisfy Any
Should this work? (where [IP] is of course the actual IP)