]> git.koha-community.org Git - koha.git/commit
Bug 16520: Allow per-VirtualHost environment variables with Plack
authorJesse Weaver <jweaver@bywatersolutions.com>
Fri, 13 May 2016 22:27:22 +0000 (16:27 -0600)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 11 Oct 2016 12:49:42 +0000 (12:49 +0000)
commit1e6df24d6cbf44c865805712e6a15ecc601273aa
treeac41c84729f4e60a16cfebaa3219b2d1ffe42881
parent8cb65b367b47ffd9a1a362e7261199fefc3628bb
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@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Koha/Middleware/SetEnv.pm [new file with mode: 0644]
debian/templates/plack.psgi
misc/plack/koha.psgi