[ringzero] Re: (OT) Apache Named Virtual Hosting question

  • From: Robert C Wittig <wittig.robert@xxxxxxxxxxxxx>
  • To: ringzero@xxxxxxxxxxxxx
  • Date: Fri, 02 Feb 2007 11:42:57 -0600

Godwin Stewart wrote:

> If you want both sites to share the same document tree then you'll have
> to give them both the same DocumentRoot.
> 

Hmm...

Here is the example I based my configuration on, which I found at:

http://httpd.apache.org/docs/1.3/vhosts/name-based.html

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

   NameVirtualHost *

     <VirtualHost *>
     ServerName www.domain.tld
     DocumentRoot /www/domain
     </VirtualHost>

     <VirtualHost *>
     ServerName www.otherdomain.tld
     DocumentRoot /www/otherdomain
     </VirtualHost>

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

This example seems to be in line with my configuration.

What I want, is to have my dot-net files in one directory under /www and 
my dot-org files in another directory under /www. The actual directory 
is /var/www but Apache chroots to /www after startup.

Another thing... I have valid DNS records on GoDaddy for both domains, 
but in the course of reading, I found some stuff that suggested that I 
might have to have the named daemon running on the supermicro server 
(the server that contains the websites), with records of its own, for 
each Named Virtual Host.

I did not try this yet, because I previously thought it was not 
necessary if there were DNS records on an official Registrar site.


-- 
-wittig http://www.robertwittig.com/
.       http://robertwittig.net/

-- 
You are receiving this message as part of your subscription to the
"ringzero" mailing list at freelists.org. To unsubscribe, send an e-mail
to ringzero-request@xxxxxxxxxxxxx?subject=unsubscribe

Other related posts: