Practical mod_perl / HTML Book /



previous page: 4.4.5. Verifying <Perl> Sections
  
page up: HTML Version of the book
  
next page: 4.4.7. Debugging

4.4.6. Saving the Perl Configuration


Instead of dumping the generated Perl configuration, you may decide to store it in a file. For example, if you want to store it in httpd_config.pl, you can do the following:

<Perl>
    use Apache::PerlSections ( );
    # code goes here
    Apache::PerlSections->store("httpd_config.pl");
</Perl>

You can then require( ) that file in some other <Perl>section. If you have the whole server configuration in Perl, you can start the server using the following trick:

panic% httpd -C "PerlRequire httpd_config.pl"

Apache will fetch all the configuration directives from httpd_config.pl, so you don't need httpd.conf at all.

 

Continue to:

  • prev: 4.4.5. Verifying <Perl> Sections
  • Table of Contents
  • next: 4.4.7. Debugging







TOP
previous page: 4.4.5. Verifying &lt;Perl&gt; Sections
  
page up: HTML Version of the book
  
next page: 4.4.7. Debugging


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