PDA

View Full Version : Yet another multiple webserver related question...


Rashef
26th May 2009, 18:55
Hi,
I found out some thread with similar questions, but no one of them followed up...

This is my config:

ROUTER

pfSense NAT/FW → LAN

DMZ

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

NODE1
http://webmail.myfirstdomain.com ➤ http://192.168.50.2/mail

NODE2
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...