@@ -, +, @@ --- debian/templates/apache-shared-intranet-plack.conf | 1 + debian/templates/apache-shared-opac-plack.conf | 1 + debian/templates/plack.psgi | 1 + 3 files changed, 3 insertions(+) --- a/debian/templates/apache-shared-intranet-plack.conf +++ a/debian/templates/apache-shared-intranet-plack.conf @@ -12,6 +12,7 @@ ProxyPreserveHost On # RequestHeader set X-FORWARDED-PROTO "https" + RequestHeader set "X-Forwarded-Script-Name" /cgi-bin/koha # Point the intranet site to Plack ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet" --- a/debian/templates/apache-shared-opac-plack.conf +++ a/debian/templates/apache-shared-opac-plack.conf @@ -12,6 +12,7 @@ ProxyPreserveHost On # RequestHeader set X-FORWARDED-PROTO "https" + RequestHeader set "X-Forwarded-Script-Name" /cgi-bin/koha # Point the intranet site to Plack ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac" --- a/debian/templates/plack.psgi +++ a/debian/templates/plack.psgi @@ -65,6 +65,7 @@ my $opac = Plack::App::CGIBin->new( builder { enable "ReverseProxy"; + enable "ReverseProxyPath"; enable "Plack::Middleware::Static"; mount '/opac' => $opac; --