From 6ca6fb45b6122d8d31a8e9d5e3168127373bb1f6 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 Signed-off-by: Marcel de Rooy Amended the patch to adjust a typo: ndex should be index. Signed-off-by: Kyle M Hall --- 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 e243f20a98..f5e7b90d74 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 0abb2c34c8..3ea6acd6c7 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" -- 2.39.5