httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@ast.cam.ac.uk (David Robinson)
Subject Re: VIF problem with <VirtualHost> ... any advice?
Date Sat, 20 May 1995 18:06:00 GMT
Liam <liam@numenet.com> wrote:
> 
>Hi, 
> 
>I'm running SunOS4.1.3 (with vif kernel hacks) and the Apache server. 
> 
>www.xyz.com is a CNAME alias for xyz.com. 
><VirtualHost www.xyz.com> etc., is in my httpd.conf file. 
> 
>Accessing http://www.xyz.com *fails* (actually, it brings up the default   
>DocumentRoot). 
>Accessing http://xyz.com *succeeds*, however, bringing up the Virtual   
>DocumentRoot. 
> 
>The get_local_addr() function in the Apache util.c file seems to return   
>the wrong socket name, but I can't figure out why. 
> 
>Any help is greatly appreciated! 
> 
>Liam 

You have to have a different IP address for each virtual host. This cannot
be done only with a CNAME record, due to a limitation of the http protocol.

The documentation (tries to) makes this clear; see
http://www.hyperreal.com/docs/virtual-host.html

 David Robinson.

Mime
View raw message