A. Schulze
May 10, 2016 04:34PM
you could also include one file at all relevant places.

nginx.conf:
server {
# settings for server1
include /path/to/include.file;
}
server {
# settings for server2
include /path/to/include.file;
}

/path/to/include.file:
allow from ip1;
allow from cidr2;
deny all;

Andreas

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Global denial for certain IPs or agents?

Alex Hall May 10, 2016 09:44AM

Re: Global denial for certain IPs or agents?

mex May 10, 2016 09:46AM

Re: Global denial for certain IPs or agents?

Alex Hall May 10, 2016 10:04AM

Re: Global denial for certain IPs or agents?

mex May 10, 2016 10:44AM

Re: Global denial for certain IPs or agents?

Francis Daly May 10, 2016 04:22PM

Re: Global denial for certain IPs or agents?

A. Schulze May 10, 2016 04:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready