Welcome! Log In Create A New Profile

Advanced

HttpLimitZoneModule + Varnish (frontend)

January 21, 2012 12:45PM
Hello,

I'm having some troubles with the Module LimitZone.
http://wiki.nginx.org/HttpLimitZoneModule

I want to limit simultaneous connections per client (IP) with "limit_conn" but it doesn't work with Varnish-cache which is listening to port 80 and NginX: 8080

To do some tests I put limit_conn to 1 and I tried to download two files from my server
If I write this on my browser adress bar :
-> http://mydomain.tld:8080/file_to_dl.ext
it works of course (I got the error 503) but this :
-> http://mydomain.tld/file_to_dl.ext
doesn't work: I can download more than 1 file.

I'm using php-fpm and $_SERVER['remote_addr'] give the right Client IP

Does anyone have a solution to my problem ?
Thanks in advance.
SubjectAuthorPosted

HttpLimitZoneModule + Varnish (frontend)

moon35January 21, 2012 12:45PM

Re: HttpLimitZoneModule + Varnish (frontend)

Maxim DouninJanuary 22, 2012 04:44PM

Re: HttpLimitZoneModule + Varnish (frontend)

moon35January 23, 2012 09:41AM

Re: HttpLimitZoneModule + Varnish (frontend)

Stefan CaunterJanuary 24, 2012 02:56AM

Re: HttpLimitZoneModule + Varnish (frontend)

gadelkareemMarch 25, 2012 12:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 5 on May 17, 2013
Record Number of Guests: 138 on May 16, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready