projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug 16520: Allow per-VirtualHost environment variables with Plack
[koha.git]
/
misc
/
plack
/
koha.psgi
diff --git
a/misc/plack/koha.psgi
b/misc/plack/koha.psgi
index
330335d
..
a66b2ec
100644
(file)
--- a/
misc/plack/koha.psgi
+++ b/
misc/plack/koha.psgi
@@
-95,6
+95,9
@@
builder {
path => qr{^/(intranet|opac)-tmpl/},
root => "$ENV{INTRANETDIR}/koha-tmpl/";
+ # + is required so Plack doesn't try to prefix Plack::Middleware::
+ enable "+Koha::Middleware::SetEnv";
+
mount "/cgi-bin/koha" => $app;
mount "/" => $home;