location /index.php?action=admin {
auth_basic 'Admin Panel';
auth_basic_user_file admin.passwd;
}
admin:{PLAIN}password:welcome to admin zone
location / {
proxy_pass http://127.0.0.1:81/; # Apache
include /etc/nginx/proxyall;
}
set $a "";
if ( $http_referer ~* (admin|moderate) ) {
set $a 1;
}
if ($remote_addr !~ 192.192.23.93) {
set $a 1$a;
}
if ($a = 11) {
return 403;
}