Got denied even the ip was allowed in the config file
RainFlying
nginx-forum at forum.nginx.org
Sun Jul 16 10:42:14 UTC 2017
This is part of the virtual server config
server {
listen 80;
server_name .kosungames.com;
include backend_acl.conf;
access_log /var/log/nginx/access-admin.log main;
error_log /var/log/nginx/error-admin.log debug;
client_max_body_size 16m;
root /srv/www/site;
index admin_index.php;
The following is the content of the backend_acl.conf:
allow 211.24.114.202/32;
allow 202.131.84.134/32;
allow 192.228.138.205/32;
allow 2001:f40:902::/48;
allow 113.10.213.250;
allow 113.10.213.252;
allow 113.10.213.253;
allow 202.131.80.74;
allow 47.52.16.173;
allow 13.112.207.63;
deny all;
However, I got 403 when I accessed the site with one of the whitelist IP.
This is part of the Nginx error log
2017/07/16 18:41:05 [error] 12579#12579: *17185 access forbidden by rule,
client: 13.112.207.63, server: kosungames.com, request: "HEAD / HTTP/1.1",
host: "cp916.kosungames.com"
What should be the cause of this issue ?
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275518,275518#msg-275518
More information about the nginx
mailing list