|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
I have an ineternet conncetion coming into a firewall on interface 0 (eth0) of my linux box. The 'Internet' link is on eth0, so to speak. On eth1 of my firewall, i have a swith that connnects to my internal netwrk. I am trying to host 4 registered domains from a combination of 2 boxes on my local network.
To do this, I DNAT (port forward) tcp traffic to 192.168.2.111, which is of the webservers. When I do this, howevver, that other webserver never sees the request that it should respond to. So how do I configure my firewall to send www.abc.com requests to 192.168.2.10 and www.xyz.com requests to 192.168.2.222? I am using Shorewall version 2.0 for the forwarding.. Think you is advance for the help, nodine at purdue.edu |
|
#2
|
|||
|
|||
|
It sounds like you need to setup a virual server for each of the sites, I assume you are running apache webserver if you look in the config file you will find info on how to do this.
|
|
#3
|
|||
|
|||
|
i have an apache box and a msft iis box, and both correctly resolve requests that are sent to them. the problem is that traffic for siteA and siteB must be sent to internal ip 192.168.2.10, while traffic for siteC and siteD must be sent to internal ip 192.168.2.11.
|
|
#4
|
|||
|
|||
|
basicly what you are doing is forwarding port 80 traffic to another IP address, the only way Im aware of to forward to two different servers is to have another one listen on a different port or get a second IP address to port forward, other wise put both web servers on the same physical server ( ie virtual servers) and depending on your web server enable host header, which will look into the http request header and see www.xyz.com or www.abc.com and direct it to the correct virtual server even though they are on the same IP address.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Networking Help > domain based forwarding |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|