Welcome! Log In Create A New Profile

Advanced

Re: 404 Method not allowed for DELETE as reverse proxy

Igor A. Ippolitov
May 25, 2018 05:56AM
It would be nice to have logs for this problem.
Please, make sure your log format includes upstream address and upstream
status ($upstream_addr and $upstream_status).

On 25.05.2018 12:27, ConnorMcLaud wrote:
> 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
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 92
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