The code of interest seems to be in include\SugarBean.php - around Line 1577:
Code:
$httpHost = $_SERVER['HTTP_HOST'];
if($colon = strpos($httpHost, ':'))
{
$httpHost = substr($httpHost, 0, $colon);
}
$parsedSiteUrl = parse_url($sugar_config['site_url']);
$host = ($parsedSiteUrl['host'] != $httpHost) ? $httpHost : $parsedSiteUrl['host']; This looks like to me that if the site_url is not equal to the $_SERVER['HTTP_HOST'], then the $_SERVER['HTTP_HOST'] will override - which is backwards for me...and I would think for most sites.
Bookmarks