<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
We use something like this and we don't have problems<br>
<br>
location ~*
^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{<br>
if ($request_method !~ ^(GET|HEAD)$ ) {<br>
return 405;<br>
}<br>
<br>
root /var/www;<br>
} <br>
<br>
On 10/25/2010 12:27 PM, Jan Andersson wrote:
<blockquote cite="mid:C6382CBB-9165-4D33-AC91-B899EB168783@pureload.com"
type="cite">
<pre wrap="">Hi,
we are using the following in our configuration to handle HTTP POST to static files:
...
# Allow POST to static URLs
error_page 405 = $uri;
...
This works, but during load, we start to see a lot of connections in CLOSE_WAIT state,
until we finally run out of connections.
Any idea why we see this and what can be done to avoid this?
We are running nginx/0.7.65 on Ubuntu 10.04:
/Jan
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<div class="moz-signature">
<table width="100%">
<tbody>
<tr>
<td style="width: 180px;" valign="top"><br>
</td>
<td valign="top" width="*"><br>
</td>
<td width="150px" align="right"><br>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>