Forum Moderators: phranque

Message Too Old, No Replies

serve 3 web sites from one server

         

catluvr

6:54 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



I'm using Apache Server to serve my pages but I have 3 sites (domains) I need to serve. Can I do this, and if so do I do this in the httpd.conf file?

coopster

10:15 pm on Sep 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, catluvr.

You certainly can. You will want to read up on Apache's Virtual Hosts [httpd.apache.org].

catluvr

2:54 pm on Sep 28, 2005 (gmt 0)

10+ Year Member



Thanks. I've been trying to follow the httpd.apache.docs for virtual hosting but when I add a virtual host, and stop the service it won't restart until I comment out all virtual host entries so I'm not doing something right.

The main host is under Global, but it acts like it is bypassing global when trying to start the service. I dunno.

coopster

4:35 pm on Sep 28, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Start with something small then ... perhaps JUST the container and a ServerName.
<VirtualHost *:80> 
ServerName localhost
</VirtualHost>