On Thu, 2002-12-12 at 22:13, Vincent Stoessel wrote:
> > "The connection was refused when attempting to contact aegir.my.com:0
> > note the port number. How did that get appended?
> This problem fixed itself when I explicitly set port to '80'
> I was told setting the port to 0 meant "any port".
> What happened?

The login redirect in Aegir doesn't work for hosts configured
to port 0, so you need to explicitly set some port (80, 8001, 
443, ...) for your Aegir CMS host.

The same problem exists currently in Nemein.Net.

The relevant code for this is in snippet /AegirCore/lib/auth_functions,
function aegir_url:

16: function aegir_url($mode = "standard") {
17:   global $midgard;
18:
19:   // Construct Aegir CMS entry URL
20:   $aegir_host = mgd_get_host($midgard->host);
21: 
22:   if ($mode == "prefix") {
23:     return $aegir_host->prefix;
24:   } elseif ($mode == "port") {
25:     return $aegir_host->port;
26:   } elseif ($mode == "host") {
27:     return $aegir_host;
28:   } else {
29:     if (($aegir_host->port != 80) && ($aegir_host->port != 443)) {
30:       $tempport=":".$aegir_host->port;
31:     }
32:     if ($aegir_host->port == 443) {
33:       $http = "https://";;
34:     } else {
35:       $http = "http://";;
36:     }
37:     $aegir_url = $http.$aegir_host->name.$tempport.$aegir_host->prefix."/";
38:     return $aegir_url;
39:   }
40: }

/Bergie

-- 
Henri Bergius                           [EMAIL PROTECTED]
Consultant Partner                      Tel: +358-20-198 6032
Nemein Oy                               http://www.nemein.com/

Nemein.Net - Project tracking solution for consulting companies
http://www.nemein.com/Nemein.Net/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to