HTML Exec Port settings

Feeling a bit daft here …

Having successfully installed and configured HTML Exec, I find that the default admin pages seem determined to fail. The same is true when trying to activate on line. I have realised that the problem is caused by the internal URLs using port 80 when SSL requires port 443.

How can I change this globally (or otherwise) please? I have scoured the various options and can find nothing obvious to me. With so many options there must be one to change/remove the port?

Many thanks

For users with the same problem in the Activation Kit of HTML Executable, open the following file:

Near line 61, you have

static public function getDomain()
{
$headers = getallheaders();
if ($headers && isset($headers[‘X_FORWARDED_PROTO’]) && $headers[‘X_FORWARDED_PROTO’] == ‘https’) {
$secure = TRUE;
$port = 443;
} else {
$secure = isset($_SERVER[‘HTTPS’]) && ($_SERVER[‘HTTPS’] == ‘on’ || $_SERVER[‘HTTPS’] == ‘1’);
$port = (isset($_SERVER[‘SERVER_PORT’])) ? $_SERVER[‘SERVER_PORT’] : NULL;
}
if ($secure) {
return ‘https://’ . $_SERVER[‘SERVER_NAME’] . ($port && $port != 443 ? ‘:’ . $port : ‘’);
} else {
return ‘http://’ . $_SERVER[‘SERVER_NAME’] . ($port && $port != 80 ? ‘:’ . $port : ‘’);
}
}

Replace the block by this one:

static public function getDomain()
{
$headers = getallheaders();
if ($headers && isset($headers[‘X_FORWARDED_PROTO’]) && $headers[‘X_FORWARDED_PROTO’] == ‘https’) {
$secure = TRUE;
$port = 443;
} else {
$secure = isset($_SERVER[‘HTTPS’]) && ($_SERVER[‘HTTPS’] == ‘on’ || $_SERVER[‘HTTPS’] == ‘1’);
$port = (isset($_SERVER[‘SERVER_PORT’])) ? $_SERVER[‘SERVER_PORT’] : NULL;
}
if ($secure) {
return ‘https://’ . $_SERVER[‘SERVER_NAME’] ;
} else {
return ‘http://’ . $_SERVER[‘SERVER_NAME’] ;
}
}

That should remove the port 80.