Welcome! Log In Create A New Profile

Advanced

Re: NGINX only for forwarding to LAN

Francis Daly
December 13, 2019 08:24AM
On Thu, Dec 12, 2019 at 01:12:52PM -0500, pixel24 wrote:

Hi there,

> server {
> server_name gw.mydomain.com;
> location / {
> proxy_pass http://192.168.24.109;
> }
> }

> I can connect from the outside to the web server :-) What surprises me
> however is that in the address line of Firefox my external WAN-IP of the
> firewall is located afterwards. Is this normal an ok?

That indicates that something it wrong somewhere.

It will "work" fine when you are reverse-proxying for just one server
name; but things will break when you try to add the "cloud" name as well.

So you should find which part of your config (nginx, or the internal
"gw" server) is writing that WAN IP address, and make it stop.

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX only for forwarding to LAN

pixel24 December 11, 2019 07:42AM

Re: NGINX only for forwarding to LAN

Francis Daly December 11, 2019 03:22PM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 11:02AM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 11:22AM

Re: NGINX only for forwarding to LAN

Francis Daly December 12, 2019 11:38AM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 01:12PM

Re: NGINX only for forwarding to LAN

pixel24 December 13, 2019 02:39AM

Re: NGINX only for forwarding to LAN

Francis Daly December 13, 2019 08:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready