IMHO, this is wrong. The server port isn't necessarily the port being listened on. See bug report and patch, long ignored:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16901 On Wed, Jan 21, 2004 at 02:08:28PM +0100, Günter Knauf wrote: > # patch for APR 1.0 compatiblity > # > --- jk_service_apache2.c.orig Tue Sep 30 18:16:14 2003 > +++ jk_service_apache2.c Wed Jan 21 04:23:32 2004 > @@ -377,8 +377,7 @@ > r->server->server_hostname); > > /* get the real port (otherwise redirect failed) */ > - apr_sockaddr_port_get(&port,r->connection->local_addr); > - s->server_port = port; > + s->server_port = r->connection->local_addr->port; > > s->server_software = (char *)ap_get_server_version(); > > Guenter. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] Some people have a way with words, while others... erm... thingy. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]