catching 408 response from upstream server

2015-02-09 Thread shmulik
Hi, I'm using nginx as reversed proxy, using the proxy module. Whenever i get a response code >= 400 from the upstream server, i'm redirecting the client to a different url. This is the configuration i use (simplified): location ~ "^/proxy/host_(.*)/fallback_(.*)" { proxy_pas

Re: Limiting parallel requests by source IP address

2015-02-09 Thread ChrisAha
Hi, For my purposes IP address is an acceptable definition of a user. In any case I would use the commercial subscription if it would help with this problem. Rate limiting doesn't help because I don't know ahead of time whether a user will make many fast requests, or fewer slow requests - and in

Re: Limiting parallel requests by source IP address

2015-02-09 Thread B.R.
First, you need to define 'user', which is not a trivial problem. Unless you use the commercial subscription, it is hard to tie a connection to a session. You can use components in fornt of nginx to identify them (usually with cookies). Thus 'user' in nginx FOSS usually means 'IP address'. Now, yo