Whitelisting Req/Conn Limiting

SupaIrish nginx-forum at nginx.us
Sun Jun 1 09:02:15 UTC 2014


Thanks for the reply

1) Your explanation clarified my misunderstanding, much appreciated.

2) Your suggestion would make a lot of sense.  But after reading your
response, I realized I wrote the check wrong in my example.  I'm trying to
whitelist an inbound request from a specific server, not one that Nginx is
serving.  Instead of $hostname I should be using $remote_addr and the IP of
the remote server I'm attempting to whitelist from the throttling.  i.e.

if ( $remote_addr = XX.XXX.XXX.XXX ) {
  set $whitelist 1;
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250510,250530#msg-250530



More information about the nginx mailing list