From: Eric Wong Date: Mon, 5 May 2014 19:59:56 +0000 (+0000) Subject: examples/apache2_perl.conf: set PI_CONFIG X-Git-Tag: v1.0.0~1153 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=a2f693a070d8c8c6f52cc9fc42462b7170e00cee examples/apache2_perl.conf: set PI_CONFIG This is easier and lower-impact than setting HOME anywhere. --- diff --git a/examples/apache2_perl.conf b/examples/apache2_perl.conf index 04d5a8e8..6615eb9f 100644 --- a/examples/apache2_perl.conf +++ b/examples/apache2_perl.conf @@ -14,7 +14,6 @@ LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so TypesConfig "/dev/null" # PerlPassEnv PATH # this is implicit -PerlPassEnv HOME 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