I'm trying to work out how to protect a folder in Apache 2.4.
I have this part working fine:
AuthUserFile /home/test/web/site.com/cgi-bin/hotels/admin/.htpasswd AuthGroupFile /dev/null AuthType Basic AuthName Protected require valid-user
...but I also want to add the option of allowing me in without having to login. This is what I had on my old server:
Order Deny,Allow Deny from all Allow from 220.127.116.11 Satisfy Any
but the new one gives an error:
client denied by server configuration: /home/test/web/site.com/cgi-bin/hotels/admin/admin.cgi
Looking at https://wiki.apache.org/httpd/ClientDeniedByServerConfiguration , I would have assumed this would work:
Require all denied Allow from 18.104.22.168 Satisfy Any
...but it doesn't seem to (doesn't even ask for a login now, even when I change the accepted IP to a random one)
What am I missing?