[Koha-bugs] [Bug 16520] Per-virtualhost SetEnvs don't work with Plack
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 13 15:24:01 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16520
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #56309|0 |1
is obsolete| |
Attachment #56310|0 |1
is obsolete| |
Attachment #56311|0 |1
is obsolete| |
Attachment #56312|0 |1
is obsolete| |
--- Comment #24 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 56397
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56397&action=edit
Bug 16520: Allow per-VirtualHost environment variables with Plack
This allows OVERRIDE_SYSPREF_* and others to work properly.
Test plan:
1) Add the following line to your plack.psgi (near the bottom, just
above "mount ..."):
enable "+Koha::Middleware::Plack";
2) Load the OPAC advanced search page (under Plack). The title should
read "Koha online catalog" (or whatever your LibraryName syspref
contains).
3) Add the following to your Apache configuration:
RequestHeader add X-Koha-SetEnv "OVERRIDE_SYSPREF_LibraryName Potato\,
Potato"
4) Restart Apache.
5) Refresh. The title should now read "Potato, Potato online catalog".
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list