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.
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)