Re: nginx proxy_pass configuration to virtualhost

2014-12-21 Thread Francis Daly
On Sat, Dec 20, 2014 at 11:36:24PM +0100, Tim Spencer | Spacesharing GmbH wrote: Hi there, > I would like to redirect to an external URL which is hosted as a > apache virtual host. There may be subtleties about your configuration that have not been included; but I'm not seeing any obvious reason

netdev 01

2014-12-21 Thread Jamal Hadi Salim
Sorry for the spam but i wasnt sure who else to contact. I'd like to invite people from nginx community to submit proposals to netdev01. https://www.netdev01.org/participate Tutorials on both developer level and/or user level will be welcome. But also this could be an opportunity to write papers

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread ASTRAPI
Thanks for your reply B.R Not very clear yet as my english is not good at all :( Can you please try to post: What i must add to main nginx config at: http { ? and what to add to the nginx domain config file at: server { ? Cloudflare ip's that i want to exclude: 199.27.128.0/21 173.245.48.

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread B.R.
I am highly suspicious about the content found at the address pointed by the link provided by mex. Unless I am mistaken, the variable filled by the geo module is not used anywhere else... thus I guess the limiting works OK, but the 'white-list' feature probably does not work, as it was expected/adv

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread ASTRAPI
Thanks for your replies but i am confused now :( Can anyone please try to post: What i must add to main nginx config at: http { ? and what to add to the nginx domain config file at: server {? Target is to have connections limit per ip 20 and requests limits per ip to 40 and reques

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread Francis Daly
On Sat, Dec 20, 2014 at 06:18:03PM -0500, ASTRAPI wrote: Hi there, > limit_conn_zone $binary_remote_addr zone=alpha:8m; > limit_req_zone $binary_remote_addr zone=delta:8m rate=40r/s; > limit_conn alpha 5; > limit_req zone=delta burst=80 nodelay; > Now i want to exclude Cloudflare ip's from this

Re: nginx proxy_pass configuration to virtualhost

2014-12-21 Thread Tim Spencer | Spacesharing GmbH
On 21/12/14 11:31, mex wrote: Hi tim, Hi, I would like to redirect to an external URL which is hosted as a apache virtual host. redirect or proxy_pass? correct wording is important here preferred proxy_pass nginx resolves the host of the url which obviously does little to resolve to the

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread ASTRAPI
@mex Yes it seems that it will help me :) But on the code he is not using limit_conn_zone at all My code: http{ limit_req_zone $binary_remote_addr zone=delta:8m rate=30r/s; limit_conn_zone $binary_remote_addr zone=alpha:8m; New code: http{ limit_req_zone $binary_remote_ad

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread Martin Frb
limit_conn_zone $binary_remote_addr zone=alpha:8m; limit_req_zone $binary_remote_addr zone=delta:8m rate=40r/s; Domain nginx conf: limit_conn alpha 5; limit_req zone=delta burst=80 nodelay; So a user can create only 5 connections per ip and can have 40 requests with a burst up to 80 connecti

Re: nginx proxy_pass configuration to virtualhost

2014-12-21 Thread mex
Hi tim, > Hi, > > I would like to redirect to an external URL which is hosted as a > apache > virtual host. redirect or proxy_pass? correct wording is important here > nginx resolves the host of the url which obviously does little to > resolve to the correct web root on the server. i dont

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread mex
hi, does this link helps? > http://gadelkareem.com/2012/03/25/limit-requests-per-ip-on-nginx-using-httplimitzonemodule-and-httplimitreqmodule-except-whitelist/ cheers, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255697,255703#msg-255703 __