[Koha-bugs] [Bug 2152] eliminate OPACBaseURL system preference and replace with SERVER_NAME
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 17 07:10:37 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2152
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcook at prosentient.com.au
--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
After some experimenting on proxied and non-proxied connections, it appears
that $ENV{'SERVER_NAME'} is the domain name of the URL that a user hits the
page with, and NOT the ServerName provided in the Apache configuration.
This means that the OPACBaseURL set in Auth.pm during the
"get_template_and_user" call will depend on the URL that a user provided to get
to that page.
Except...when the Koha server is sitting behind a proxy server. In that case,
the $ENV{'SERVER_NAME'} appears to come from the proxy server (I'm not certain
what name is used...but it looks like some kind of local identifier), while
$ENV{'HTTP_X_FORWARDED_HOST'} will contain the domain of the URL provided by
the user.
I'm opening bug 11575 to investigate further into this.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list