Welcome! Log In Create A New Profile

Advanced

Proxy to external website

Posted by BobbyC 
Proxy to external website
June 05, 2020 03:05PM
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.
Attachments:
open | download - nginx.conf (440 bytes)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
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