Apache::PAR

Perl extension for including Perl ARchive files in a mod_perl (1.x or 2.x) environment.
Download

Apache::PAR Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Nathan Byrd
  • Publisher web site:
  • http://search.cpan.org/~nbyrd/Apache-PAR-0.30/PAR/tutorial.pod

Apache::PAR Tags


Apache::PAR Description

Perl extension for including Perl ARchive files in a mod_perl (1.x or 2.x) environment. Apache::PAR is a Perl extension for including Perl ARchive files in a mod_perl (1.x or 2.x) environment.SYNOPSIS Inside Apache configuration: PerlSetVar PARInclude /path/to/par/archive/directory ... PerlAddVar PARInclude /path/to/a/par/file.par ... PerlModule Apache::PAR In Apache/mod_perl 1.x environments on Win32 platforms, the following should be used instead: PerlSetVar PARInclude /path/to/par/archive/directory ... PerlSetVar PARInclude /path/to/a/par/file.par ... < PERL > use Apache::PAR; < /PERL > Alternative configuration, inside a startup.pl script or PERL section: use Apache::PAR qw( /path/to/par/archive/directory /path/to/a/par/file.par ); Inside a web.conf file: Alias /myapp/static/ ##PARFILE##/ < Location /myapp/static > SetHandler perl-script PerlHandler Apache::PAR::Static PerlSetVar PARStaticDirectoryIndex index.htm PerlAddVar PARStaticDirectoryIndex index.html PerlSetVar PARStaticDefaultMIME text/html < /Location > Alias /myapp/cgi-perl/ ##PARFILE##/ < Location /myapp/cgi-perl > Options +ExecCGI SetHandler perl-script PerlHandler Apache::PAR::Registry < /Location > Alias /myapp/cgi-run/ ##PARFILE##/ < Location /myapp/cgi-run > Options +ExecCGI SetHandler perl-script PerlHandler Apache::PAR::PerlRun < /Location > PerlModule MyApp::TestMod Alias /myapp/mod/ ##PARFILE##/ < Location /myapp/mod > SetHandler perl-script PerlHandler TestMod < /Location > Using ##UNPACKDIR## to unpack archive Alias /myapp/static/ ##UNPACKDIR##/htdocs/ Alias /myapp/cgi-perl/ ##UNPACKDIR##/scripts/ < Location /myapp/cgi-perl > Options +ExecCGI SetHandler perl-script PerlHandler Apache::Registry < /Location > Alias /myapp/cgi-run/ ##UNPACKDIR##/scripts/ < Location /myapp/cgi-run > Options +ExecCGI SetHandler perl-script PerlHandler Apache::PerlRun < /Location > PerlModule MyApp::TestMod Alias /myapp/mod/ ##PARFILE##/ < Location /myapp/mod > SetHandler perl-script PerlSetEnv TestModTemplateDir ##UNPACKDIR##/template PerlHandler TestMod < /Location > Using PerlInitHandler to reload changed modules: PerlModule Apache::PAR PerlInitHandler Apache::PARApache::PAR is a framework for including Perl ARchive files in a mod_perl (1.x or 2.x) environment. It allows an author to package up a web application, including configuration, static files, Perl modules, and Registry and PerlRun scripts to include in a single file. This archive can then be moved to other locations on the same system or distributed, and loaded with a single set of configuration options in the Apache configuration.These modules are based on PAR.pm by Autrijus Tang and Archive::Zip by Ned Konz, as well as the mod_perl modules. They extend the concept of PAR files to mod_perl, similar to how WAR archives work for Java. An archive (which is really a zip file), contains one or more elements which can be served to clients making requests to an Apache web server. Scripts, modules, and static content should then be able to be served from within the .par archive without modifications.Apache::PAR itself performs the work of specifying the location of PAR archives and allowing the loading of modules from these archives. The files and paths can be specified at load time. Once an archive has been located, an optional web.conf (filename configurable) is then loaded and included into the main web configuration. Once Apache::PAR has been loaded, Perl Apache modules within these .par files can then be loaded. Requirements: · Perl


Apache::PAR Related Software