Bugzilla – Attachment 51578 Details for
Bug 16520
Per-virtualhost SetEnvs don't work with Plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16520: Add new Plack-SetEnv syntax to Apache configuration files
Bug-16520-Add-new-Plack-SetEnv-syntax-to-Apache-co.patch (text/plain), 2.09 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-05-17 16:00:10 UTC
(
hide
)
Description:
Bug 16520: Add new Plack-SetEnv syntax to Apache configuration files
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-05-17 16:00:10 UTC
Size:
2.09 KB
patch
obsolete
>From 886da706fb3292486ebd0b1408d9e4329a624e6f Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <jweaver@bywatersolutions.com> >Date: Fri, 13 May 2016 16:40:11 -0600 >Subject: [PATCH] Bug 16520: Add new Plack-SetEnv syntax to Apache > configuration files > >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> >--- > debian/templates/apache-shared.conf | 5 +++++ > debian/templates/apache-site.conf.in | 4 ++++ > 2 files changed, 9 insertions(+) > >diff --git a/debian/templates/apache-shared.conf b/debian/templates/apache-shared.conf >index 9ee3b0f..b923578 100644 >--- a/debian/templates/apache-shared.conf >+++ b/debian/templates/apache-shared.conf >@@ -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> >diff --git a/debian/templates/apache-site.conf.in b/debian/templates/apache-site.conf.in >index 3f7ad52..97a2a28 100644 >--- a/debian/templates/apache-site.conf.in >+++ b/debian/templates/apache-site.conf.in >@@ -14,6 +14,8 @@ > SetEnv KOHA_CONF "/etc/koha/sites/__KOHASITE__/koha-conf.xml" > SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" > SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" >+ RequestHeader add X-Koha-SetEnv "MEMCACHED_SERVERS __MEMCACHED_SERVERS__" >+ RequestHeader add X-Koha-SetEnv "MEMCACHED_NAMESPACE __MEMCACHED_SERVERS__" > AssignUserID __UNIXUSER__ __UNIXGROUP__ > > ErrorLog /var/log/koha/__KOHASITE__/opac-error.log >@@ -35,6 +37,8 @@ > SetEnv KOHA_CONF "/etc/koha/sites/__KOHASITE__/koha-conf.xml" > SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" > SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" >+ RequestHeader add X-Koha-SetEnv "MEMCACHED_SERVERS __MEMCACHED_SERVERS__" >+ RequestHeader add X-Koha-SetEnv "MEMCACHED_NAMESPACE __MEMCACHED_SERVERS__" > AssignUserID __UNIXUSER__ __UNIXGROUP__ > > ErrorLog /var/log/koha/__KOHASITE__/intranet-error.log >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16520
:
51493
|
51494
|
51495
|
51496
|
51576
|
51577
|
51578
|
51579
|
51580
|
56309
|
56310
|
56311
|
56312
|
56397
|
56410
|
56411
|
56412
|
56413
|
57372
|
57383