Reason for 405 error on POST

Igor Sysoev is at rambler-co.ru
Sat Aug 23 10:09:13 MSD 2008


On Fri, Aug 22, 2008 at 10:53:25PM +0700, Chris Savery wrote:

> Having a problem with a 405 response for something that has often worked 
> before.
> 
> url is like:  condor?cmd=Fbs,601&stars=1
> and post data is: comment=xxxx
> or sometimes no post data if comment not type in.
> 
> I see that content length is set in header going out.
> But keep getting 405 back except the odd time for some reason I get a 
> 200 OK.
> Anyone have any ideas? I have other parts of my code where POST works ok 
> with the same php handler. Note above is has no php extension because I 
> have a rewrite that adds it for the backend. That has been working fine 
> in all other cases.

nginx usually returns 405 for POST to static files.
Could you show example line from access log ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list