valid_referers dynamic hostname

2013-05-18 Thread vlad...@binkmail.com
Sorry for posting here - don't know for sure if it's the right place. I have an issue: 1) I use nginx as reverse proxy, but I don't always know the domain name for which I'm serving, so my setup looks like this: server_name _ $host 0.0.0.0; 2) I try to block invalid referers but when I try to

Re: Merging equivalent cache keys?

2013-05-18 Thread António P . P . Almeida
Using the embedded Lua module you can add the three IDs as integers and reduce it to a single number. That way you'll get a single number by virtue if the commutativity of real number addition. AFAIK there are no arithmetic operators available on the Nginx config language. appa On Sat, Ma

The truth about gzip_buffers?

2013-05-18 Thread spdyg
Reading the docs on nginx.org and searching around, it seems there's no consensus on how we should configure gzip_buffers. Some guides say that the total buffer needs to be greater than any file you want to gzip, or it will either not gzip the file or truncate it (I'm sure this is not true though!

Merging equivalent cache keys?

2013-05-18 Thread roysmith649
We've got a route which is used to retrieve multiple objects in parallel. The client does a GET on /api/1/station/multi?id=123&id=456&id=789. We cache these in our nginx config: location ~ /api/[^/]+/station/multi { proxy_pass http://localhost:8000; proxy_set_h

Re: Nginx returns HTTP 200 with Content-Length: 0

2013-05-18 Thread spdyg
Do you have SPDY enabled? I have experienced issues with SPDY, upstream keepalive and proxy_cache together. Ended up having to turn off SPDY. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,205826,239314#msg-239314 ___ nginx mailing list ngi