Hello everyone!
I am currently in the projects of working on 2 webservers, both of same specs running linux.
My goal objective is to be able to host multiple websites from both of these webservers,
Using both servers over 1 public IP.
Both of my webservers are in a dns cluster setup and work well over local network.
The challenge i am facing is i am only able to access webserver 1 and not webserver2 when using their domain names.
My clear os setup is running under the Gateway Mode setting with 2 network cards.
I have tried using the port forward settings and opening same ports for both servers but have no luck.
I have purchased an $15 plugin "Proxy Pass" and feel like its a waste having no luck.
I have tried 1:1 nat because it gives the ability to add multiple rules, with having no luck.
I am currently in the projects of working on 2 webservers, both of same specs running linux.
My goal objective is to be able to host multiple websites from both of these webservers,
Using both servers over 1 public IP.
Both of my webservers are in a dns cluster setup and work well over local network.
The challenge i am facing is i am only able to access webserver 1 and not webserver2 when using their domain names.
My clear os setup is running under the Gateway Mode setting with 2 network cards.
I have tried using the port forward settings and opening same ports for both servers but have no luck.
I have purchased an $15 plugin "Proxy Pass" and feel like its a waste having no luck.
I have tried 1:1 nat because it gives the ability to add multiple rules, with having no luck.
Share this post:
Responses (2)
-
Accepted Answer
If you are running with a single external IP address then firewall rules can't help you. 1-to-1 NAT will only work with multiple external IP's. The way to go is probably the Proxy Pass app.
If both web servers are on your LAN, you'll probably need to remove the port forward rule when you configure the proxy pass app then configure it to pass for both web servers. Alternatively, you need to set up the web server that you can reach with a reverse proxy similar to the proxy pass to forward the relevant http(s) requests to the other web server. What is your topology? -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »