Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Proxy to external website

$
0
0
I need to see the headers nginx is passing along, and I found a lovely website called http://httpbin.org that lets you see all sorts of things. Just adding /headers to the path shows me the headers. Great!

So I quickly created a simple nginx.conf to proxy calls there, and even added the X-Forwarded header to be sure it was being set. But I suck at conf'ing. Keep getting a 404. Can anyone see what I'm doing wrong, or at least give me a working conf?

This is what I used.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>