<div dir="ltr">Hello,<br>I'm using Nginx to serve a few TurboGears projects and some Wordpress sites. Mostly is does it job more than well, but lately I'm facing some problems serving not-so-big static files.<br><br>
The files come statically, and not from an upstream server.<br><br clear="all"> location ^~ /static/ {<br> root /home/user/some/static/directory;<br> gzip on;<br> gzip_comp_level 9;<br>
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;<br> expires max;<br> } <br><br>Try this link for example, which is a 1.9mb PDF file uploaded by one of my users:<br>
<a href="http://noal.org.il/static/uploads/u-20/%5B1231615256%5Dhozer.pdf">http://noal.org.il/static/uploads/u-20/%5B1231615256%5Dhozer.pdf</a><br>If I'm correct, it will stop after ~1.5mb. The speed drops to 0K/s, and my logs show a timeout:<br>
2009/01/11 15:36:48 [info] 546#0: *612 client timed out (110: Connection timed out) while sending response to client, client: xxx.xxx.xxx.xxx, server: <a href="http://noal.org.il">noal.org.il</a>, request: "GET /static/uploads/u-20/%5B1231615256%5Dhozer.pdf HTTP/1.0", host: "<a href="http://noal.org.il">noal.org.il</a>"<br>
<br>I've tried it both from my browser and using wget - exactly same thing.<br><br>What could be causing that?<br><br>I have <br> tcp_nopush on;<br> client_max_body_size 500M;<br> gzip on;<br>on my http {} part<br>
and<br> client_header_buffer_size 1k;<br> large_client_header_buffers 8 8k;<br>in the server {} one.<br><br>But commenting them didn't make a difference.<br><br>Any idea would be kindly appreciated.<br>
<br>Thanks.<br>-- <br>Yo'av Moshe<br>
</div>