Apache2::Mojo - mod_perl2 handler for Mojo
version 0.004
in httpd.conf:
<Perl> use lib '...'; use Apache2::Mojo; use TestApp; </Perl> <Location /> SetHandler perl-script PerlSetEnv MOJO_APP TestApp PerlHandler Apache2::Mojo </Location>
This is a mod_perl2 handler for Mojo/Mojolicious.
Set the application class with the environment variable MOJO_APP.
MOJO_APP
MOJO_RELOAD is also supported (e. g. PerlSetEnv MOJO_RELOAD 1).
MOJO_RELOAD
PerlSetEnv MOJO_RELOAD 1
Apache2, Mojo, Mojolicious.
Uwe Voelker, <uwe.voelker@gmx.de>
To install Apache2::Mojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::Mojo
CPAN shell
perl -MCPAN -e shell install Apache2::Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.