[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Multiple Domains with Single Virtual Host



but won't that leave you with an unused site2 directory?  not a big deal
just wondering...

-erik

on 1/14/02 7:45 PM, Ian McCabe at idmccabe@xxxxxxxxxxxxxxxx wrote:

> The way I know it is to create two virtual sites, say which ends up
> providing:
> 
> /home/sites/site1/web --> domain.com this is what actually contains your
> site files
> /home/sites/site1/web --> domain.co.uk this is the 2nd domain which is emtpy
> 
> Open up and edit the httpd.conf file to change the document root for the 2nd
> domain.
> 
> i.e. DocumentRoot for the .com is /home/sites/site1 and the DocumentRoot for
> the .co.uk is /home/sites/site2.
> 
> All you have to do is change the DocumentRoot for the .co.uk to
> /home/sites/site2 IE. the .com site.
> 
> Obviously replace site1 and site2 with the actual site#'s
> 
> Hope this helps,
> 
> Ian