How to solve the problem of "405 not allowed"?

Dave Cheney dave at cheney.net
Wed May 27 11:28:39 MSD 2009


What response do you expect to receive when you issue

POST /javascript.js HTTP/1.1

Cheers

Dave

peacock writes:

> When I post when a JavaScript file, "405 not allowed" error will appear.
> 
> if use proxy, it can work.
> 
>         error_page   405 =200 @405;
>         location @405 {
>             root  /htdocs;
>             proxy_pass   http://localhost:8080;
>         }
> 
> 
> but I do not want to use proxy, just want to use Nginx, can to achieve it?
> 
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2414,2414#msg-2414
> 
> 





More information about the nginx mailing list