Apache::Mojo - mod_perl handler for Mojo
version 0.003
in httpd.conf:
<Perl> use lib '...'; use Apache::Mojo; use TestApp; </Perl> <Location /> SetHandler perl-script PerlSetEnv MOJO_APP TestApp PerlSetEnv MOJO_PATH /path/to/testapp/ PerlHandler Apache::Mojo </Location>
This is a mod_perl handler for Mojo/Mojolicious and Apache. For mod_perl2, use Apache2::Mojo.
Set the application class with the environment variable MOJO_APP.
MOJO_APP
If you use relative filesystem paths for templates, etc., set the environment variable MOJO_PATH to your base application path.
MOJO_PATH
MOJO_RELOAD is also supported (e. g. PerlSetEnv MOJO_RELOAD 1).
MOJO_RELOAD
PerlSetEnv MOJO_RELOAD 1
Apache, Mojo, Mojolicious.
Apache2::Mojo by Uwe Voelker, <uwe.voelker@gmx.de>
Ported to mod_perl 1 by Dave Sherohman, <dave@sherohman.org>
To install Apache::Mojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Mojo
CPAN shell
perl -MCPAN -e shell install Apache::Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.