Bugzilla – Attachment 78321 Details for
Bug 21267
X_FORWARDED_PROTO header should be set in apache
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21267: Set X-FORWARDED-PROTO https if required
Bug-21267-Set-X-FORWARDED-PROTO-https-if-required.patch (text/plain), 2.04 KB, created by
Marcel de Rooy
on 2018-08-31 06:40:29 UTC
(
hide
)
Description:
Bug 21267: Set X-FORWARDED-PROTO https if required
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-08-31 06:40:29 UTC
Size:
2.04 KB
patch
obsolete
>From 07ac0d02f3553caaba62e858c4a016d5a49f490f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 24 Aug 2018 10:45:52 -0300 >Subject: [PATCH] Bug 21267: Set X-FORWARDED-PROTO https if required >Content-Type: text/plain; charset=utf-8 > >This patch makes the apache configuration for the reverse proxy >(required for Plack) so it sets the X-FORWARDED-PROTO header correctly >for Plack::Middleware::ReverseProxy to use it. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Ulrich Kleiber <ulrich.kleiber@bsz-bw.de> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Since we actually resolve 19799 now (Changing language on OPAC redirects >back to homepage), I will move that code to a new enh report. >--- > debian/templates/apache-shared-intranet-plack.conf | 2 +- > debian/templates/apache-shared-opac-plack.conf | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/debian/templates/apache-shared-intranet-plack.conf b/debian/templates/apache-shared-intranet-plack.conf >index 5ae8e07..ff8cd9c 100644 >--- a/debian/templates/apache-shared-intranet-plack.conf >+++ b/debian/templates/apache-shared-intranet-plack.conf >@@ -22,7 +22,7 @@ > > ProxyPreserveHost On > >- # RequestHeader set X-FORWARDED-PROTO "https" >+ RequestHeader set X-FORWARDED-PROTO "https" env=HTTPS > > #Â Point the intranet site to Plack > ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet/mainpage.pl" >diff --git a/debian/templates/apache-shared-opac-plack.conf b/debian/templates/apache-shared-opac-plack.conf >index 3ea6acd..bee75e9 100644 >--- a/debian/templates/apache-shared-opac-plack.conf >+++ b/debian/templates/apache-shared-opac-plack.conf >@@ -11,7 +11,7 @@ > > ProxyPreserveHost On > >- # RequestHeader set X-FORWARDED-PROTO "https" >+ RequestHeader set X-FORWARDED-PROTO "https" env=HTTPS > > #Â Point the OPAC site to Plack > ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl" >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21267
:
78132
|
78133
| 78321