Practical mod_perl / HTML Book /



previous page: 4.3.4. The Confusion with use( ) in the Server Startup File
  
page up: HTML Version of the book
  
next page: 4.4.1. Constructing <Perl> Sections

4.4. Apache Configuration in Perl


With <Perl> ... </Perl>sections, you can configure your server entirely in Perl. It's probably not worth it if you have simple configuration files, but if you run many virtual hosts or have complicated setups for any other reason, <Perl>sections become very handy. With <Perl>sections you can easily create the configuration on the fly, thus reducing duplication and easing maintenance.[27]

[27]You may also find that mod_macro is useful to simplify the configuration if you have to insert many repetitive configuration snippets.

To enable <Perl>sections, build mod_perl with:

panic% perl Makefile.PL PERL_SECTIONS=1 [ ... ]

or with EVERYTHING=1.

 

Continue to:

  • prev: 4.3.4. The Confusion with use( ) in the Server Startup File
  • Table of Contents
  • next: 4.4.1. Constructing <Perl> Sections







TOP
previous page: 4.3.4. The Confusion with use( ) in the Server Startup File
  
page up: HTML Version of the book
  
next page: 4.4.1. Constructing &lt;Perl&gt; Sections


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com