httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: vhost hooks
Date Sat, 01 Dec 2001 09:41:40 GMT
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>

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..."
Mime
View raw message