Port forward: 1 external IP, 2 internal physical web servers
-
192.168.2.10
Webserver 1: IIS 7
Configured to sense Host Header Names
Website Hostname: iis.mydomain.com192.168.2.11
Webserver 2: Ubuntu Apache2,
Configured for Virtual Hosts
Website Hostname: apache2.mydomain.comOPT1 IP: 120.60.240.1
NAT Rule 1:
TCP
Src Addr *
Src Port *
Dest Addr: OPT1
Dest Ports: 80
NAT IP: 192.168.2.10NAT Rule 2:
TCP
Src Addr *
Src Port *
Dest Addr: OPT1
Dest Ports: 80
NAT IP: 192.168.2.11Naturally, when apache2.mydomain.com is accessed, the NAT reads Rule 1 first and Webserver 1 responds "Not found" before going to NAT Rule 2
What could be a practical solution for this problem?
-
What could be a practical solution for this problem?
You need one more external IP address.
-
You need to run either Squid in accelerator mode or the likes of HAProxy - a search of the forum should find you more on both. You do not need another WAN IP to achieve this.
-
If I remember right, the mod_security package can also handle this.
-
http://forum.pfsense.org/index.php/topic,33566.msg174126.html#msg174126
^^^ how to install/setup pound"Proxy Server with mod_security" and varnish which is supported on the beta x64 version.