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

  • From: ed <ed@xxxxxxx>
  • To: ringzero@xxxxxxxxxxxxx
  • Date: Fri, 2 Feb 2007 19:21:46 +0000

On Fri, 02 Feb 2007 11:42:57 -0600
Robert C Wittig <wittig.robert@xxxxxxxxxxxxx> wrote:

> 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.

the example your posted should do that

> 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.

i can't see why that would be required. apache doesnt use dns, as far
as i know. it just gets a socket request like this:

GET / HTTP/1.1
Host:www.robertwittig.com

at which point apache knows which site to serve. there's no dns to help
apache do this.

-- 
Regards, Ed                      :: http://www.openbsdhacker.com
proud bash person
Chuck Norris always gets blackjack. Even when he's playing poker. 
-- 
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: