Bug 16520: Add new Plack-SetEnv syntax to Apache configuration files
authorJesse Weaver <jweaver@bywatersolutions.com>
Fri, 13 May 2016 22:40:11 +0000 (16:40 -0600)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 11 Oct 2016 12:37:16 +0000 (12:37 +0000)
This was not added to the old etc/koha-httpd.conf because that file has
no infrastructure for Plack anyway.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
debian/templates/apache-shared.conf

index 9ee3b0f..b923578 100644 (file)
@@ -74,3 +74,8 @@ ErrorDocument 404 /cgi-bin/koha/errors/404.pl
 ErrorDocument 500 /cgi-bin/koha/errors/500.pl
 
 RewriteEngine On
+
+<IfModule mod_headers.c>
+   # Erase any X-Koha-SetEnv headers from the client
+   RequestHeader unset X-Koha-SetEnv
+</IfModule>