httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: NameVirtualHost
Date Thu, 16 Oct 1997 01:32:46 GMT


On Wed, 15 Oct 1997, Doug MacEachern wrote:

> I'm not sure I follow here, can I see a full multiple use example?
> BTW, I don't use virtual hosts myself, so forgive if I've not followed
> the discussions.

My example in the previous message included such an example.  But here's a
simple one again:

    NameVirtualHost 10.0.0.1
    <VirtualHost 10.0.0.1>
	ServerName www.client1.com
	...
    </VirtualHost>

    <VirtualHost 10.0.0.1>
	ServerName www.client2.com
	...
    </VirtualHost>

Note that during a migration period, say when client1 is migrating from a
name-vhost to an ip-vhost (upgrading their service) the following config
is also valid:

    NameVirtualHost 10.0.0.1
    <VirtualHost 10.0.0.1 10.0.1.1>
	ServerName www.client1.com
	...
    </VirtualHost>

    <VirtualHost 10.0.0.1>
	ServerName www.client2.com
	...
    </VirtualHost>

And so is the following:

    NameVirtualHost 10.0.0.1
    <VirtualHost 10.0.0.1>
	ServerName www.client1.com
	...
    </VirtualHost>

    <VirtualHost 10.0.0.1>
	ServerName www.client2.com
	...
    </VirtualHost>

    <VirtualHost 10.0.1.1>
	ServerName www.client1.com
	...
    </VirtualHost>

Dean


Mime
View raw message