I need nginx for return GET and POST form requests:
/myapp/path/to/resource
at
http://127.0.0.1:9090/path/to/resource
I am trying to do the following:
location /myapp/(.*) {
rewrite $1;
proxy_pass http://127.0.0.1:9090;
}
but nginx returns an HTTP 405 error [not allowed].
Any ideas on how to fix this? Thank.
source
share