Routing Between Virtual Interfaces on Web Server
I am having a problem with my webserver and virtual hosts. I am a newbie to Linux, so bare with me. I am running SuSE 8.2, Apache 1.3. I want to have 3 separate websites from the one server, but only have one NIC. The webpages will only be viewed on the local LAN, not the internet. I have 3 interfaces configured on the server with the following attributes:
192.168.0.1-----Physical-----www.domain.com
192.168.0.10--- Virtual-------subdomain.domain.com
192.168.0.20----Virtual-------subdomain.domain.com
First, I should ask if it's ok to have all of these interfaces on the same 192.168.0.0 network?? The websites and DNS work fine if I use a browser on the server and type in the 3 separate addresses. My problem is accessing all 3 websites from other computers on the LAN. If I use a different computer on the LAN, I can only get to the Website that is configured on the Physical 192.168.0.1 interface, but not the other 2 on the Virtual Interfaces. Also, the DNS lookups for the 2 virtual interfaces do not work from other computers on the LAN (but work from the server fine)even though I have the DNS server address set to 192.168.0.1 on all computers. The only thing I can think of is that the server is not routing requests from the physical interface to the virtual interfaces. How can I get this to happen? I have tried messing with routing, but nothing has worked. This is probably a no brainer, but I have no idea where to go next. Please Help.
Last edited by Louie55; 02-19-2004 at 12:27 PM.
|