[Koha-bugs] [Bug 25361] Support X-Forwarded-* headers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 4 02:38:42 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25361

--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
Thanks to https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21267, the
X-Forwarded-Proto header gets set in Apache when using Plack, so
Plack::Middleware::ReverseProxy will set the $ENV->{HTTPS} to true. 
(With CGI, you'd need to add the headers in your reverse proxy, but Koha
doesn't have a mechanism for using X-Forwarded-Proto for CGI Koha.)

Thanks to https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23068,
there is support for X-Forwarded-For for both Plack and CGI Koha.
(mod_proxy_http in Apache should automatically add headers for X-Forwarded-For,
X-Forwarded-Host, and X-Forwarded-Server). I guess
Plack::Middleware::ReverseProxy runs too and takes care of the first reverse
proxy which will be Apache on the local machine...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list