Welcome! Log In Create A New Profile

Advanced

404 Method not allowed for DELETE as reverse proxy

May 25, 2018 05:27AM
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?
Subject Author Posted

404 Method not allowed for DELETE as reverse proxy

ConnorMcLaud May 25, 2018 05:27AM

Re: 404 Method not allowed for DELETE as reverse proxy

Igor A. Ippolitov May 25, 2018 05:56AM

Re: 404 Method not allowed for DELETE as reverse proxy

ConnorMcLaud May 25, 2018 06:02AM

Re: 404 Method not allowed for DELETE as reverse proxy

ConnorMcLaud May 25, 2018 06:12AM

Re: 404 Method not allowed for DELETE as reverse proxy

Maxim Dounin May 25, 2018 07:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 97
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready