From a2f693a070d8c8c6f52cc9fc42462b7170e00cee Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 May 2014 19:59:56 +0000 Subject: examples/apache2_perl.conf: set PI_CONFIG This is easier and lower-impact than setting HOME anywhere. --- examples/apache2_perl.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7