Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Close access with HTTP authentication:
location /index.php?action=admin {
auth_basic 'Admin Panel';
auth_basic_user_file admin.passwd;
}
admin:{PLAIN}password:welcome to admin zone
Thanks for answering.
I tried that, it doesn't work.
I don't understand why...
Maybe because of this?
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;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question