Nginx conf 502 on reverse proxy location

my http conf is at

currently getting me a 502 when I hit

Any idea what I’m doing wrong?


location /oauth {

Posted at Nginx Forum:

Your configuration appears very strange at first glance: you are using
proxy_* directives while issuing a uwsgi_pass.
Try cleaning it up by removing extra directive on first hand and try to
make it workd with the most minimalist configuration possible.

Anyhow, check your backend listens on the interface, and on
8001. You can set up a tcpdump utility making the gateway between front
back ends to check the connection proceeds the way you expect it does.

B. R.