How do I host 2 different website's on two different ports?

Support for webhosts that use CentOS
Post Reply
pvtoneill
Posts: 1
Joined: 2011/10/25 16:32:52
Contact:

How do I host 2 different website's on two different ports?

Post by pvtoneill » 2011/10/25 16:36:40

I am currently using a vps and was wondering how to host multiple website's on different ports.

such as

something.com : 192.168.1.1

and

otherthing.com : 201.197.2.1

How can I make this work?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

How do I host 2 different website's on two different ports?

Post by gerald_clark » 2011/10/25 16:54:00

Welcome to CentOS.
New members need to read:
http://www.centos.org/modules/newbb/viewforum.php?forum=47

Your question is not clear.
Those are not ports, they are IP addresses, and they are not even in the same network.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: How do I host 2 different website's on two different ports?

Post by pschaff » 2011/10/26 19:52:42

[quote]
gerald_clark wrote:
...
Those are not ports, they are IP addresses, and they are not even in the same network.[/quote]
Also the first address is on a private non-routing network thus would presumably be using NAT, and would require port forwarding via a router to be accessible external to the LAN. Both are ".1" addresses - by convention usually reserved for the router on a subnet.

You may be interested in the [url=http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Deployment_Guide/index.html#s1-apache-virtualhosts]upstream Deployment Guide - 23.7. Virtual Hosts[/url] chapter.

Post Reply

Return to “CentOS 5 - Webhosting Support”