Yet another multiple webserver related question...
I found out some thread with similar questions, but no one of them followed up...
This is my config:
pfSense NAT/FW → LAN
There are several servers into the DMZ, providing different services... until now!
Since I have NOW two webserver I need to correctly redirect external requests, but I cannot understand how to do this because I need a strange config.
NODE1 (192.168.50.2) is a CentOS 5.3 mailserver, with RoundCube as webmail.
NODE2 (192.168.50.7) is a Mac OS X running Apache, PHP and MySQL, with lots of websites.
This is what I need
http://webmail.myfirstdomain.com ➤ http://192.168.50.2/mail
http://www.firsthost.com ➤ http://192.168.50.7/~firsthost_com
http://www.secondhost.com ➤ http://192.168.50.7/~secondhost_com
and so on...
I focused on a combine of mod_proxy a VirtualHosts on Node1 but I cannot understand how to do that...
I don't know how to configure so it will work like that, but I have suggestion
Get two static IP and assign one to each server
You can even do if only one NIC in the machine with virtual NIC assignments:
x.x.x.x is real-world IP #1
y.y.y.y is real-world IP #2
z.z.z.z is subnet-mask for these ip range
Then you adjust the nameserver records to point to the particular real-world IP of which server is hosting that particular website
myfirstdomain.com. A = x.x.x.x
www A = x.x.x.x
webmail A = x.x.x.x
firsthost.com. A = y.y.y.y
www A = y.y.y.y
secondhost.com. A = y.y.y.y
www A = y.y.y.y
That is how I have my servers setup currently (except they have quad physical NIC, so no virtual interfaces)
|All times are GMT +2. The time now is 11:28.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.