From e1e41c44e5027c39701990cdba0516754843fea2 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 8 Sep 2016 16:19:08 +0000 Subject: [PATCH] Bug 16918 (QA Followup) - Add reverse proxy and fix intranet vs opac typo Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy Amended the patch to adjust a typo: ndex should be index. --- debian/templates/apache-shared-intranet-plack.conf | 1 + debian/templates/apache-shared-opac-plack.conf | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/templates/apache-shared-intranet-plack.conf b/debian/templates/apache-shared-intranet-plack.conf index e243f20..f5e7b90 100644 --- a/debian/templates/apache-shared-intranet-plack.conf +++ b/debian/templates/apache-shared-intranet-plack.conf @@ -25,6 +25,7 @@ # Point the intranet site to Plack ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet/mainpage.pl" + ProxyPassReverse /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet/mainpage.pl" ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet" ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet" diff --git a/debian/templates/apache-shared-opac-plack.conf b/debian/templates/apache-shared-opac-plack.conf index 0abb2c3..3ea6acd 100644 --- a/debian/templates/apache-shared-opac-plack.conf +++ b/debian/templates/apache-shared-opac-plack.conf @@ -13,8 +13,9 @@ # RequestHeader set X-FORWARDED-PROTO "https" - # Point the intranet site to Plack + # Point the OPAC site to Plack ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl" + ProxyPassReverse /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl" ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac" ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac" -- 1.7.10.4