Welcome! Log In Create A New Profile


Reverse proxy to backend servers - single public IP

Posted by ittaus 
Reverse proxy to backend servers - single public IP
August 15, 2018 07:32AM
Hi, im after a little help.

I have a setup where I require my single public IP to serve 3 websites hosted on virtual servers. I am running NGINX on a 4th VM, this is where I am pointing all my port forwards. When I load the external IP, it comes up with the nginx default page.

What I need is to reverse proxy subdomain.mydomain.com.au to vmserver 1, subdomain2.mydomain.com.au to vmserver 2 and subdomain3.mydomain.com.au to vmserver 3

I have tried to set up reverse proxy with what I understand to be the config (sites-available/mydomain) with server and proxy pass, but I cannot get it to forward requests. I am also wanting it to listen on both 80 and 443 for each of these servers.

Is there someone out there that is willing to help? I know it wont be a hard fix, but I am not great a ubuntu server and very new to nginx.

Look forward to hearing from someone....
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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