404 Method not allowed for DELETE as reverse proxy
ConnorMcLaud
nginx-forum at forum.nginx.org
Fri May 25 09:27:24 UTC 2018
Hi, I use nginx as reverse proxy to my Flask web server and have following
problem:
after I changed proxy pass to variable DELETE requests started to return 405
Method not allowed (while POST works fine)
location /client_data {
resolver 127.0.0.11 valid=60s;
resolver_timeout 5s;
set $upstream_client_data web:5000;
proxy_pass http://$upstream_client_data/client_data;
}
However, everything works fine with
location /client_data {
resolver 127.0.0.11 valid=60s;
resolver_timeout 5s;
proxy_pass http://web:5000/client_data;
}
Full conf:
https://gist.github.com/connormclaud/bc3d65dcb307507c0d8786a168c66b51
What did I do wrong?
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279953,279953#msg-279953
More information about the nginx
mailing list