Skip to content

Commit

Permalink
moved mod_perl recipe to the wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 7, 2011
1 parent 89fda4b commit 65205c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@
This file documents the revision history for Perl extension Mojolicious.

1.98 2011-09-06 00:00:00
- Improved documentation.
- Improved tests.
- Fixed small bug in cookie jar.
- Fixed Hypnotoad to clean up lock files.
Expand Down
23 changes: 0 additions & 23 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -160,29 +160,6 @@ You can even use middleware right in your application.
app->start;
};

=head2 Apache/mod_perl (PSGI/Plack)

C<mod_perl> is a good example for a L<PSGI> adapter that is used without
C<plackup>, note that setting the C<PLACK_ENV> environment variable is
required for L<Mojolicious> L<PSGI> detection.

<VirtualHost *:80>
ServerName localhost
DocumentRoot /home/sri/myapp/public

<Perl>
$ENV{PLACK_ENV} = 'production';
$ENV{MOJO_HOME} = '/home/sri/myapp';
$ENV{MOJO_MODE} = 'deployment';
</Perl>

<Location /myapp>
SetHandler perl-script
PerlHandler Plack::Handler::Apache2
PerlSetVar psgi_app /home/sri/myapp/script/myapp
</Location>
</VirtualHost>

=head2 Rewriting

Sometimes you might have to deploy your application in a blackbox environment
Expand Down

0 comments on commit 65205c6

Please sign in to comment.