Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to Changing apache ports

Re: Changing apache ports

For the moment I've got around it by changing absolute_urls.php from:

// check if the current port is not 80 or 443
if $_SERVER%22SERVER_PORT%22 {
if 'SERVER_PORT' != 80) && ($_SERVER'SERVER_PORT' != 443" class="wiki wikinew text-danger tips">$_SERVER'SERVER_PORT' != 80) && ($_SERVER'SERVER_PORT' != 443 {
if 'HTTPS') && $_SERVER'HTTPS' 'on'" class="wiki wikinew text-danger tips">isset($_SERVER'HTTPS') && $_SERVER'HTTPS' 'on' {
$prefs'https_port' = (int) $_SERVER'SERVER_PORT';
} else {
$prefs'http_port' = (int) $_SERVER'SERVER_PORT';
}
}

to

// check if the current port is not 80 or 443
if $_SERVER%22SERVER_PORT%22 {
$prefs'http_port' = $_SERVER%22SERVER_PORT%22 ;
if 'SERVER_PORT' != 80) && ($_SERVER'SERVER_PORT' != 443" class="wiki wikinew text-danger tips">$_SERVER'SERVER_PORT' != 80) && ($_SERVER'SERVER_PORT' != 443 {
if 'HTTPS') && $_SERVER'HTTPS' 'on'" class="wiki wikinew text-danger tips">isset($_SERVER'HTTPS') && $_SERVER'HTTPS' 'on' {
$prefs'https_port' = (int) $_SERVER'SERVER_PORT';
} else {
$prefs'http_port' = (int) $_SERVER'SERVER_PORT';
}
}

But I don't know if that is a suitable long-term fix.