httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@cnet.com>
Subject Re: vhost hooks
Date Mon, 03 Dec 2001 18:50:52 GMT
On Mon, 2001-12-03 at 09:28, Ian Holsman wrote:
> On Sat, 2001-12-01 at 01:41, Graham Leggett wrote:
> > Rolando Michan wrote:
> > 
> > > Can you send and example of that file
> > > Thank you in advance
> > 
> > Include allows you to include any file you want, with whatever config
> > you want in it. So for example, if you have a group of vhosts with a bit
> > of common config in it, say like this:
> > 
> > <VirtualHost blah>
> >   Setenv frog joe
> >   Setenv rabbit bill
> > </VirtualHost>
> > <VirtualHost foo>
> >   Setenv frog joe
> >   Setenv rabbit bill
> > </VirtualHost>
> > 
> > You could create a common file, say called environment.conf with this:
> > 
> >  Setenv frog joe
> >  Setenv rabbit bill
> > 
> > And then have your normal config like this:
> > 
> > <VirtualHost blah>
> >   Include environment.conf
> > </VirtualHost>
> > <VirtualHost foo>
> >   Include environment.conf
> > </VirtualHost>
> > 
> 
> I tried that...
> and for some reason it looked that the setting in the include file were
> done 'server-wide' not just for the vhost.
> 
> I'll see if I can get a simple test case up & running for a demo
> 

Must be something 12#!@#'ed up with a custom module
sorry for the post
> > Regards,
> > Graham
> > --
> > 
> > > ----- Original Message -----
> > > From: Graham Leggett <minfrin@sharp.fm>
> > > To: <dev@httpd.apache.org>
> > > Sent: Saturday, December 01, 2001 5:57 AM
> > > Subject: Re: vhost hooks
> > > 
> > > Ian Holsman wrote:
> > > 
> > > > over here @cnet we have a groups of a couple (10-50) of hostnames
> > which
> > > provide similiar content
> > > > but are slightly different (eg.. yahoo.cnet.com & news.cnet.com) and
> > >  http://hotbar.cnet.com/ and
> > > > shopper.cnet.com)
> > > 
> > > Why not just include an external common file?
> > > 
> > > <Vhost blah>
> > > Include common.conf
> > > </Vhost>
> > > 
> > > Regards,
> > > Graham
> > > --
> > > -----------------------------------------
> > > minfrin@sharp.fm "There's a moon
> > > over Bourbon Street
> > > tonight..."
> > 
> > -- 
> > -----------------------------------------
> > minfrin@sharp.fm		"There's a moon
> > 					over Bourbon Street
> > 						tonight..."
> -- 
> Ian Holsman          IanH@cnet.com
> Performance Measurement & Analysis
> CNET Networks   -   (415) 344-2608
-- 
Ian Holsman          IanH@cnet.com
Performance Measurement & Analysis
CNET Networks   -   (415) 344-2608


Mime
View raw message