Virtual hosting - some input

Support for webhosts that use CentOS
Post Reply
madal30
Posts: 37
Joined: 2008/12/08 14:06:02

Virtual hosting - some input

Post by madal30 » 2008/12/16 15:50:40

Hello all,

I have one centos 5 box up and running with some webserver application. There are no problem so far. Now I wanted to add another website on the same machine. I read virtual host can be used for this purpose. This is what I am looking for.

Machine has only one network interface and has a IP, subnet mask as 192.168.1.1/24 and gateway 192.168.1.254. Another IP is completely different subnet. I would like to host 10.10.1.1 in the same machine - how can i achieve this ?

I tried configuring virtualhost both via GUI and command line but could not get anywhere. some inputs will certinly help


Ma

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

Virtual hosting - some input

Post by gerald_clark » 2008/12/16 16:20:26

You need to configure your router to port forward to another port on your server, and
configure httpd to run another VirtualHost for that port..

Please read your config files, as well as the new member wiki pages:
http://www.centos.org/modules/newbb/viewforum.php?forum=47

Post Reply

Return to “CentOS 5 - Webhosting Support”