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

peacock nginx-forum at
Wed May 27 11:17:49 MSD 2009

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:,2414,2414#msg-2414

More information about the nginx mailing list