Re: Apply nginx rate limits to certain IP addresses, and another rate limit to others

2017-10-30 Thread stuwat
Or should it be more like this? geo $limited_net { default 0; 111.222.333.444 1; } map $limited_net $addr_to_limit { 0 ""; 1 $binary_remote_addr; } limit_req_zone $addr_to_limit zone=two:10m rate=15r/m; limit_req_zone $binary_remote_addr; zone=three:10m rate=25r/m; Posted at

Apply nginx rate limits to certain IP addresses, and another rate limit to others

2017-10-30 Thread stuwat
In our Nginx config we currently have this:- limit_req_zone $binary_remote_addr zone=two:10m rate=15r/m; limit_req zone=two burst=5 nodelay; Now we want to change this so that this rate limit applies to certain IP addresses, and then have another rate limit that applies to others that is slightly

Re: Nginx proxy_pass not working as expected.

2016-10-28 Thread stuwat
We're trying to point example.com at a site hosted at github... So we need example.com to point to the site hosted at example.github.io So a user visits example.com they get the page hosted at example.github.com, but with example.com still in the address bar. HTH Stuart Posted at Nginx Forum:

Nginx proxy_pass not working as expected.

2016-10-28 Thread stuwat
Hi I have the virtualhost file configured as the following:- server { server_name example.com; location / { proxy_pass http://example.org; } } When I visit example.com it redirects correctly to example.org, but I need it to show example.com in the address bar. How can I do this? i tried chan