Ticket #334 (closed Bug report: fixed)
BASE_NON_SSL_PATH problems when port other than 80
Reported by: | tdb@… | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | Not yet assigned to a Milestone |
Component: | Auth server, Other | Version: | |
Keywords: | Cc: |
Description
Hi,
I am new to this so feel free to kick me if I am going about this in totally the wrong way.
I found a problem when trying to use http://myhostname.eu:8080/ I could visit the main page and that was fine but then all the links on the page would be pointing to http://myhostname.eu and not http://myhostname.eu:8080
I have made the following changes to path_defines_url_content.php and found it now works regardless of the port used.
if ($_SERVERSERVER_PORT? != 80) {
define('BASE_NON_SSL_PATH', ' http://'.$_SERVER['SERVER_NAME'] . ':'.$_SERVERSERVER_PORT? . SYSTEM_PATH);
} else {
define('BASE_NON_SSL_PATH', ' http://'.$_SERVER['SERVER_NAME'] . SYSTEM_PATH);
}
The else statement has been included just for neatness.
Cheers,
Tim