Thanks Derek, That did the trick.
Troy T. Hall

Registered Linux User #342150
----- Original Message ----- 
From: "Derek Jennings" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 11, 2004 0619 N6REJ
Subject: Re: [newbie] Apache 2.x server configuration question


> On Sunday 11 Jan 2004 11:42 am, Troy T. Hall wrote:
> > I'm wanting to use the apache server to host 2 domains from the same
> > dynamic ip, that is so far staying very static ( 3 months ).  But it is
> > nat'd. ( 192.168.123.197 ). the thing I'm not sure of is how do I tell
> > apache to distinguish between the default setup which has all the nice
> > documentation links and a ton of directories that I'm just starting to
> > investigate so don't want to lose yet, and the two seperate places where
> > I'll put the other domain files?
> >
> > I tried creating a directory for www.camplighthouse.org ( the server
name
> > is Genesis.camplighthouse.org as /home/camplighthouse/public_html and
told
> > apache to use it as a virtual host, but when I go there I still see the
> > same default webpage even though I've put a junk index.html page there.
> > Would someone please point me in the right general direction?
> >
> > Troy T. Hall
>
> In /etc/httpd/2.0/conf/vhosts
> For each virtual host add  stanzas like this :-
>
> NameVirtualHost www.yourdomain.net
> <VirtualHost www.yourdomain.net>
> ServerName www.yourdomain.net
> ServerAlias www.yourdomain.net *.yourdomain.net yourdomain.net
> #ServerPath /domain
> DocumentRoot /var/www/html
> </VirtualHost>
>
> <VirtualHost www.camplighthouse.org.net>
> ServerName www.camplighthouse.org
> ServerAlias camplighthouse.org  *www.camplighthouse.org
> #ServerPath /domain
> DocumentRoot /var/www/html/camplighthouse
> </VirtualHost>
>
> Put your web pages in /var/www/html/camplighthouse
>
>
>
> derek
>
>
> -- 
> ----------------------------------
> www.jennings.homelinux.net
> http://twiki.mdklinuxfaq.org
>
>
>


----------------------------------------------------------------------------
----


> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/04


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to