@itguy51 - The port numbers appearing there are only being used to check whether they were supplied in the url. If they are found, they are stripped out. This means even if you edit the code to insert your custom port number, it shall be stripped out therefore rendering the url invalid.
What I've done is:
1. Comment out the url-checking code. Find this code:
<br />
$domain = addslashes( $_SERVER['HTTP_HOST'] );<br />
if( substr( $domain, 0, 4 ) == 'www.' )<br />
$domain = substr( $domain, 4 );<br />
if( strpos( $domain, ':' ) ) {<br />
if( substr( $domain, -3 ) == ':80' ) {<br />
$domain = substr( $domain, 0, -3 );<br />
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -3 );<br />
} elseif( substr( $domain, -4 ) == ':443' ) {<br />
$domain = substr( $domain, 0, -4 );<br />
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );<br />
} else {<br />
die( 'WPMU only works without the port number in the URL.' );<br />
}<br />
}<br />
$domain = preg_replace('/:.*$/', '', $domain); // Strip ports<br />
if( substr( $domain, -1 ) == '.' )<br />
$domain = substr( $domain, 0, -1 );<br />
and comment it like so:
<br />
/*<br />
$domain = addslashes( $_SERVER['HTTP_HOST'] );<br />
if( substr( $domain, 0, 4 ) == 'www.' )<br />
$domain = substr( $domain, 4 );<br />
if( strpos( $domain, ':' ) ) {<br />
if( substr( $domain, -3 ) == ':80' ) {<br />
$domain = substr( $domain, 0, -3 );<br />
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -3 );<br />
} elseif( substr( $domain, -4 ) == ':443' ) {<br />
$domain = substr( $domain, 0, -4 );<br />
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );<br />
} else {<br />
die( 'WPMU only works without the port number in the URL.' );<br />
}<br />
}<br />
$domain = preg_replace('/:.*$/', '', $domain); // Strip ports<br />
if( substr( $domain, -1 ) == '.' )<br />
$domain = substr( $domain, 0, -1 );<br />
*/<br />
2. Set up the domain and $_SERVER['HTTP_HOST'] variables with the custom port. Just after the commented code, insert:
<br />
$domain = 'kalengi.localhost:8040';<br />
$_SERVER['HTTP_HOST'] = 'kalengi.localhost:8040';</p>
<p>
Replace <b>kalengi.localhost:8040</b> with your own local domain and port.
After this this home page loaded. I suspect that there is going to be some trouble down the road since WPMU expects no port number, but in my case I have to use the port number so I'll just sort out the issues as they arise. In any case, this is a local test site so I don't mind editing core files.