404 Method not allowed for DELETE as reverse proxy

Igor A. Ippolitov iippolitov at nginx.com
Fri May 25 09:54:15 UTC 2018


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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx




More information about the nginx mailing list