httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabien COELHO <coe...@cri.ensmp.fr>
Subject Re: patch to force name virtual hosts
Date Mon, 15 Nov 1999 09:12:29 GMT

> I'm having a hard time understanding why you need a patch. Why not
> just do this?:
> 
> <VirtualHost 10.2.14.2>
> ServerName www.apache.org
> DocumentRoot /path/to/local/root/of/apache/if/any
> ...
> </VirtualHost>

Maybe a I missed something, but:

I don't think that doing this would make the name virtual host mecanism
chose this virtual host configuration. It's a ip-based virtual host, that
is any request on 10.2.14.2 is sent to this host, but not especially those
with "Host: www.apache.org" header. Or even if it is a name virtual host
configuration, the virtual name is "10.2.14.2", not "www.apache.org".

ServerName is just used for the server output, e.g. redirects, not for 
chosing a virtual host. If you want a name virtual host, the current
directive only allows virtual hosts the name of which resolves to a local
ip interface.

-- 
Fabien Coelho ___ coelho@cri.ensmp.fr ___ http://www.cri.ensmp.fr/~coelho


Mime
View raw message