I have rules similar to the following to deny access to my various control panels (using WordPress as the example here);
Code:
<Directory ~ "/var/www/.*/wp-admin">
Order deny,allow
Deny from all
Allow from *.*.*
</Directory>
With a few IP blocks set up to allow access for me from my ISP (which happily changes my IP more than a narcissist looks at himself in the mirror, but anywho).
It seems that these rules are now voided since I finally got around to setting up an nginx proxy. I'm assuming Apache is only seeing the IP address that nginx is sending from (rpaf is set up and working).
Can I do this from nginx.conf?
Code:
location ~* wp-admin/?$ {
allow *.*.*
deny all
}
Is this right? Can I place it outside of server { } so it takes effect globally?