LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Routing different domain names on the same IP (http://www.linuxquestions.org/questions/linux-networking-3/routing-different-domain-names-on-the-same-ip-531194/)

wannab3g33k 02-21-2007 10:09 PM

Routing different domain names on the same IP
 
Hello,

I was wondering if anybody could help me with this. I have 3 machines in my apartment running Ubuntu 6.06 LTS, CentOS 4.4 and Windows XP Pro SP2. These 3 machines are behind a single D-Link DI-604 router. This router is behind the router of the ISP who provides the broadband Internet connection (the ISP router is also in my apartment). So essentially, I have one public IP (router) and all the servers are on private IPs. I have 3 domain names and I want to host each of the 3 domains on the 3 different machines.

How do I accomplish the following situation:

www.example1.com > 192.168.0.100 (CentOS)
www.example2.com > 192.168.0.101 (Ubuntu)
www.example3.com > 192.168.0.102 (WinXP Pro)

example1.com, example2.com and example3.com ...all point to the same public IP address.

Please advise.

Thank you.
-WBG

wannab3g33k 02-21-2007 10:45 PM

BTW, I want to use port 80 for all the 3 domain names.


All times are GMT -5. The time now is 09:44 PM.