Mailing List Archive

Re: VIF problem with <VirtualHost> ... any advice?
Another one for Cliff, possibly,

from c.i.www.server.unix


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

>--
>
>\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>Liam Kirsher VOICE: 415-456-6822
>Numenet, Inc. FAX: 415-456-0599
>775 E. Blithedale Ave. #176 EMAIL: liam@numenet.com
>Mill Valley, CA 94941 URL: http://www.numenet.com
>/////////////////////////////////////////////////////////////////
Re: VIF problem with <VirtualHost> ... any advice? [ In reply to ]
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.