1 # Example Apache2 configuration using Plack::Handler::Apache2
2 # Adjust paths to your installation
4 ServerName "public-inbox"
6 DocumentRoot "/var/www"
7 ErrorLog "/tmp/public-inbox-error.log"
8 PidFile "/tmp/public-inbox.pid"
10 LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
12 # no need to set no rely on HOME if using this:
13 PerlSetEnv PI_CONFIG /home/pi/.public-inbox/config
16 SetHandler perl-script
17 PerlResponseHandler Plack::Handler::Apache2
18 PerlSetVar psgi_app /path/to/public-inbox.psgi
21 # Optional, preload the application in the parent like startup.pl
23 use Plack::Handler::Apache2;
24 Plack::Handler::Apache2->preload("/path/to/public-inbox.psgi");