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 02:08:56 GMT


On Wed, 15 Oct 1997, Doug MacEachern wrote:

> Dean Gaudet <dgaudet@arctic.org> wrote:
> 
> > 
> > 
> > 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>
> 
> hmm, you could try:
> push @{ $VirtualHost{"10.0.0.1"}->{ServerName} }, 
>         qw(www.client1.com www.client2.com);
> 
> if that doesn't work already, I can make work, or find a workaround.
> The rest should be work-able too if the above is.

That's ugly.

    NameVirtualHost 10.0.0.1  
    <VirtualHost 10.0.0.1>    
	ServerName www.client1.com
	DocumentRoot /www/client1
	Redirect /abc /def
    </VirtualHost>            
			    
    <VirtualHost 10.0.0.1>    
	ServerName www.client2.com
	DocumentRoot /www/client2
    </VirtualHost>            

What do you do with the rogue Redirect?  There could be hundreds of those in
one server, and none in the other.

Dean


Mime
View raw message