Summary: | eliminate OPACBaseURL system preference and replace with SERVER_NAME | ||
---|---|---|---|
Product: | Koha | Reporter: | Chris Cormack <chris> |
Component: | OPAC | Assignee: | Galen Charlton <gmcharlt> |
Status: | CLOSED INVALID | QA Contact: | |
Severity: | minor | ||
Priority: | P3 | CC: | dcook, gmcharlt, nengard |
Version: | Main | ||
Hardware: | PC | ||
OS: | All | ||
See Also: | http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11575 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Chris Cormack
2010-05-21 00:47:09 UTC
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. |