]> Sergey Matveev's repositories - public-inbox.git/blob - examples/apache2_perl.conf
nntp: use substr to check for trailing CRLF
[public-inbox.git] / examples / apache2_perl.conf
1 # Example Apache2 configuration using Plack::Handler::Apache2
2 # Adjust paths to your installation
3
4 ServerName "public-inbox"
5 ServerRoot "/var/www"
6 DocumentRoot "/var/www"
7 ErrorLog "/tmp/public-inbox-error.log"
8 PidFile "/tmp/public-inbox.pid"
9 Listen 127.0.0.1:8080
10 LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
11
12 # no need to set no rely on HOME if using this:
13 PerlSetEnv PI_CONFIG /home/pi/.public-inbox/config
14
15 <Location />
16         SetHandler perl-script
17         PerlResponseHandler Plack::Handler::Apache2
18         PerlSetVar psgi_app /path/to/public-inbox.psgi
19 </Location>
20
21 # Optional, preload the application in the parent like startup.pl
22 <Perl>
23         use Plack::Handler::Apache2;
24         Plack::Handler::Apache2->preload("/path/to/public-inbox.psgi");
25 </Perl>