client_max_body_size

2013-03-24 Thread Hagai Avrahami
Hi Is there any way to deny all requests with body? I know I can set set client_max_body_size to 1 (byte) But.. in that case Nginx reads all body request before finalizing the request. In case of requests with body as part of attack I would like to close the connection immediately without wasting

Re: Request path not passed to proxy when $scheme is used in proxy_pass URI

2013-03-24 Thread Ben Hoskings
Ahh, I've found the answer in the proxy_pass documentation. http://wiki.nginx.org/HttpProxyModule#proxy_pass -- "A special case is using variables in the proxy_pass statement: The requested URL is not used and you are fully responsible to construct the target URL yourself." Surprising, but now I

Re: How to make nginx establish persistent connections with squid?

2013-03-24 Thread selphon
Hi, Maxim Dounin I revise the topology: chrome --> squid:80 --> origin server(nginx :80) and make 5 requests,the squid log shows: 192.168.70.160 - - [22/Mar/2013:15:41:41 +0800] "GET http://test.cache.com/p3.jpg?tt=2013032201 HTTP/1.1" 304 365 "http://test.cache.com/p3.jpg?tt=2013032201"; "Mozi

Re: How to make nginx establish persistent connections with squid?

2013-03-24 Thread selphon
Thank you, Maxim Dounin. I see. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237666,237713#msg-237713 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx