]> Sergey Matveev's repositories - public-inbox.git/commitdiff
examples/apache2_perl.conf: set PI_CONFIG
authorEric Wong <e@80x24.org>
Mon, 5 May 2014 19:59:56 +0000 (19:59 +0000)
committerEric Wong <e@80x24.org>
Mon, 5 May 2014 19:59:56 +0000 (19:59 +0000)
This is easier and lower-impact than setting HOME anywhere.

examples/apache2_perl.conf

index 04d5a8e81c2a895351ada07c4c83e90af43617a2..6615eb9f5fa849a954167c73c0597c07f09778f8 100644 (file)
@@ -14,7 +14,6 @@ LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
 TypesConfig "/dev/null"
 
 # PerlPassEnv PATH # this is implicit
-PerlPassEnv HOME
 <Directory /var/www/cgi-bin>
        Options +ExecCGI
        AddHandler perl-script .cgi
@@ -25,6 +24,9 @@ PerlPassEnv HOME
        # in any of our redirects:
        PerlSetEnv NO_SCRIPT_NAME 1
 
+       # no need to set no rely on HOME if using this:
+       PerlSetEnv PI_CONFIG /home/pi/.public-inbox/config
+
        # our public-inbox.cgi requires PATH_INFO-based URLs with minimal
        # use of query parameters
        DirectoryIndex public-inbox.cgi