[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 10:38:57 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16520
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #51576|0 |1
is obsolete| |
Attachment #51577|0 |1
is obsolete| |
Attachment #51578|0 |1
is obsolete| |
Attachment #51579|0 |1
is obsolete| |
Attachment #51580|0 |1
is obsolete| |
--- Comment #20 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 56309
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56309&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>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list