perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <eric.b...@barclayscapital.com>
Subject RE: Considering using Perl Sections
Date Fri, 01 Oct 2010 21:52:43 GMT
We use a combination of Perl sections and Template Toolkit to generate our apache configs.
 The Perl sections are good for run-time setup for things like host names (i.e., to name logs
per host in our cluster) and the templating is good for setting up things like multiple proxies
that have just a few differences.  In this case, I set up a data structure, and then iterate
over it to generate the configs for the proxies.

I also set up a utility script to deploy the whole shebang, since you can't use the templated
configs as actual apche config files.  Rendering these templates takes maybe 2 seconds, so
I render my dev version against those that I've deployed to one of our DEV, STAGE, or PROD
environments.

Eric

> -----Original Message-----
> From: Chris Bennett [mailto:chris@bennettconstruction.biz] 
> Sent: Friday, October 01, 2010 4:47 PM
> To: modperl@perl.apache.org
> Subject: Considering using Perl Sections
> 
> A while back I realized the futility of using a single 
> httpd.conf after 
> having many errors due to not repeating things correctly in 
> SSL section 
> and the long length of the file.
> I broke  it up into a httpd.conf, mod_gzip.conf, a global 
> SSL.conf and a 
> conf file (and SSL version if needed) for each virtual host.
> Right now that is a total of 13 conf files.
> I like being able to diff the two versions for each virtual 
> host to look 
> for errors.
> 
> Right now I am using Apache::AuthCookie to protect a variety of 
> locations, but that is making things complicated again.
> 
> At this point, should I break the AuthCookie sections out 
> into confs for 
> each virtual host using it, learn to use Perl Sections, or something 
> different? Any suggestions are welcome.
> 
> Thanks
> Chris Bennett
> 
> 
> 
_______________________________________________

This e-mail may contain information that is confidential, privileged or otherwise protected
from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or
redistribute it by any means. Please delete it and any attachments and notify the sender that
you have received it in error. Unless specifically indicated, this e-mail is not an offer
to buy or sell or a solicitation to buy or sell any securities, investment products or other
financial product or service, an official confirmation of any transaction, or an official
statement of Barclays. Any views or opinions presented are solely those of the author and
do not necessarily represent those of Barclays. This e-mail is subject to terms available
at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent
to the foregoing.  Barclays Capital is the investment banking division of Barclays Bank PLC,
a company registered in England (number 1026167) with its registered office at 1 Churchill
Place, London, E14 5HP.  This email may relate to or be sent from other members of the Barclays
Group.
_______________________________________________

Mime
View raw message