POST to an html page

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 ?

On Mon, Oct 08, 2007 at 12:15:58PM -0400, Jonathan V. 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   ...;
 }