POST to an html page

Igor Sysoev is at rambler-co.ru
Mon Oct 8 20:47:21 MSD 2007


On Mon, Oct 08, 2007 at 12:15:58PM -0400, Jonathan Vanasco wrote:

> I'm trying to POST a form to an html page -- there is no code ; i am  
> just faking a form flow for a client
> 
> nginx gives me a "405 Not Allowed" on the post request ; i can get  
> the page fine
> 
> is there a directive i can use to get around this ?

No, as static page can not handle POST, so nginx return 405.
There is workaround:

     error_page   405   = @405;

     location = @405 {
         root   ...;
     }


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





More information about the nginx mailing list