2 Web Servers, 2 Domains, 1 WAN IP configuration

Posted by Tillman32 on Server Fault See other posts from Server Fault or by Tillman32
Published on 2011-11-21T17:23:31Z Indexed on 2011/11/21 17:54 UTC
Read the original article Hit count: 177

Filed under:
|
|
|

The Problem: I have 2 domains, 2 web servers, 1 WAN IP. This is on a home network, so I don't have any crazy router or anything with the right tools, at least I don't think I do. I have a Dlink DIR-655 router. I need to be able to forward the website to the right box.

1 server is hosting www.site1.com, and the other should be hosting, www.site2.com. I forwarded the domain, to a port that is forwarded to that box. wanip:1235, 1235 is then forwarded to the internal IP of site2's server. But when I go to www.site2.com I get the 404 page of www.site1.com.

I need www.site2.com to go to the right server. Is this something I can do in the virtual hosts of www.site1.com or is it something else.

Also, if this isn't entirely possible, or if its a big process, I can just move www.site1.com to the www.site2.com's server, and use virtual hosts, that is an option that I would be okay with.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about webserver