Welcome! Log In Create A New Profile

Advanced

Re: Need help setting nginx up as proxy

January 12, 2010 07:17AM
Fixed it now - I had copied the proxy syntax from the nginx.conf.default example of proxying to apache, but it seems that the following lines are also needed in the conf for Nginx on port 80, otherwise the Nginx listening on the other port doesn't receive the domain being accessed:
[code]
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
[/code]

Dave
Subject Author Posted

Need help setting nginx up as proxy

djeyewater January 11, 2010 06:17AM

Re: Need help setting nginx up as proxy

djeyewater January 12, 2010 07:17AM

Re: Need help setting nginx up as proxy

merlin corey January 12, 2010 07:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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