DNS and NAME BASED APACHE

Simon Waters Simon at wretched.demon.co.uk
Sat Jul 14 21:04:29 UTC 2001


panchetta wrote:
> 
> Is there a ~ then the server name?  What am I missing?

See Apache documentation.

Yyou could have a record like;

www IN 1.2.3.4

in every zone which uses this server (a.com, b.net), thus
www.a.com and www.b.net would both be 1.2.3.4.

The Apache server (when correctly configured) will examine
the HTTP request and return the appropriate page, DNS has
nothing to do with it any more, except REALLY old browsers
may have a problem.

SNIP of APACHE DOCUMENTATION

 For example, suppose that both www.domain.tld and
www.otherdomain.tld
   point at the IP address 111.22.33.44. Then you simply add
to one of
   the Apache configuration files (most likely httpd.conf or
srm.conf)
   code similar to the following:
    NameVirtualHost 111.22.33.44
 
    <VirtualHost 111.22.33.44>
    ServerName www.domain.tld
    DocumentRoot /www/domain
    </VirtualHost>
 
    <VirtualHost 111.22.33.44>
    ServerName www.otherdomain.tld
    DocumentRoot /www/otherdomain
    </VirtualHost>


More information about the bind-users mailing list