Welcome! Log In Create A New Profile

Advanced

Nginx Proxy

Posted by xarlamp 
Nginx Proxy
September 04, 2018 05:16AM
Hello.

I have 2 servers with nginx intalled with 2 external ip.( 192.168.0.1 192.168.1.1)
1 domain - example.com
3 web services test1.example.com test2.example.com test3.examle.com

and BIG problem :)

Right now i have DNS setup:
test1.example.com - 192.168.0.1
test2.example.com - 192.168.0.1
test3.example.com - 192.168.0.1

I need to change DNS setup to:
test1.example.com - 192.168.1.1
test2.example.com - 192.168.1.1
test3.example.com - 192.168.1.1

But web services must remain on 192.168.0.1

How to configure that setup?

Thanks for any help :)
Re: Nginx Proxy
September 04, 2018 09:27AM
proxy_pass http://192.168.0.1/ for each server_name, and retain the Host: header.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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