Welcome! Log In Create A New Profile

Advanced

Got denied even the ip was allowed in the config file

July 16, 2017 06:42AM
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 ?
Subject Author Posted

Got denied even the ip was allowed in the config file

RainFlying July 16, 2017 06:42AM

Re: Got denied even the ip was allowed in the config file

RainFlying July 16, 2017 07:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 100
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready