POST to static URL and CLOSE_WAIT

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
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:


We use something like this and we don’t have problems

location ~*

if ($request_method !~ ^(GET|HEAD)$ ) {
return 405;

     root   /var/www;


Thanks, but I’m not sure how something like this enables posting to
static files?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs