Re: How to define multiple resolvers?

2013-08-13 Thread sufw
According to the documentation (http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver), it's been possible to define multiple resolvers since 1.1.7. However the documentation does not provide the syntax for doing so. Separating the IP addresses with spaces seems to work for me (in 1.4.

nginx-extras (1.4.1 Ubuntu precise) cache loader/manager issue

2013-08-13 Thread nmarques
Dear people, I used for a while the nginx-extras 1.4.1 for Ubuntu 12.04 LTS (precise); I used this package since it supported 'more_clear_headers' which was useful to hide some headers (LifeRay headers). As you have guessed, I'm using nginx for reverse proxying and from a while for caching (as an

Re: Limit connection to specific location

2013-08-13 Thread Valentin V. Bartenev
On Tuesday 13 August 2013 17:12:11 Jaap van Arragon wrote: > Hello, > > I'am looking for a way to limit the number of connection in one hour to a > location named /api/ > > I've looked at the ngx_http_limit_conn_module module but I don't understand > how to limit the amount of connection from a s

Re: Limit connection to specific location

2013-08-13 Thread Bob S.
Maybe you should tell us what yo are trying to do in more detail. If all you are trying to do is rate limit, there are easier ways to do it. On Tue, Aug 13, 2013 at 1:39 PM, B.R. wrote: > Hello, > > On Tue, Aug 13, 2013 at 9:12 AM, Jaap van Arragon < > j.vanarra...@lukkien.com> wrote: > >> Hell

Re: Limit connection to specific location

2013-08-13 Thread B.R.
Hello, On Tue, Aug 13, 2013 at 9:12 AM, Jaap van Arragon wrote: > Hello, > > I'am looking for a way to limit the number of connection in one hour to a > location named /api/ > > I've looked at the ngx_http_limit_conn_module module but I don't > understand how to limit the amount of connection fro

Re: Limit connection to specific location

2013-08-13 Thread Bob S.
One dirty way to do it would be to use a program to monitor the connections that access that location and then, when 20 connections in an hour have occurred, have the config file swapped out and replaced with another that does not have that location block. There is a way to get Nginx to reread it's

Re: upstream max_fails disable

2013-08-13 Thread B.R.
Hello, On Tue, Aug 13, 2013 at 8:31 AM, Ruslan Ermilov wrote: > > If there's a single server, max_fails and fail_timeout parameters > are ignored, and such a server will never become temporarily down. > > ​That would be worth mentioning in the Nginx documentation​... > http://nginx.org/en/docs

Re: Limit connection to specific location

2013-08-13 Thread Pablo J. Villarruel
Good question! On Tue, Aug 13, 2013 at 10:12 AM, Jaap van Arragon wrote: > Hello, > > I'am looking for a way to limit the number of connection in one hour to a > location named /api/ > > I've looked at the ngx_http_limit_conn_module module but I don't > understand how to limit the amount of con

Re: fix bug in http_referer_module that using incorrect input string length in the regex matching process when header Referer starts with https://

2013-08-13 Thread Sergey Kandaurov
On Aug 12, 2013, at 9:27 AM, Liangbin Li wrote: > --- ngx_http_referer_module.c > +++ ngx_http_referer_module.c > @@ -147,10 +147,12 @@ > > if (ngx_strncasecmp(ref, (u_char *) "http://";, 7) == 0) { > ref += 7; > +len -= 7; > goto valid_scheme; >

Limit connection to specific location

2013-08-13 Thread Jaap van Arragon
Hello, I'am looking for a way to limit the number of connection in one hour to a location named /api/ I've looked at the ngx_http_limit_conn_module module but I don't understand how to limit the amount of connection from a specific ip address per hour. For example: ip address 33.33.33.33 can onl

Re: upstream max_fails disable

2013-08-13 Thread Ruslan Ermilov
On Thu, Aug 08, 2013 at 10:45:14AM +0100, Richard Kearsley wrote: > Hi > I'm using the upstream module - with sole purpose to enable keepalives > to my backend > I don't want to use any of the other features, I only have 1 server in > the upstream {} > Does that mean max_fails is still being used