Your message dated Fri, 16 Jan 2004 18:17:29 +1100 with message-id <[EMAIL PROTECTED]> and subject line UseCanonicalName port redirect behaviour: fixed upstream has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 11 Oct 1999 05:57:15 +0000 Received: (qmail 18686 invoked from network); 11 Oct 1999 05:57:15 -0000 Received: from bluebox.ne.mediaone.net (HELO osiris.978.org) ([EMAIL PROTECTED]) by master.debian.org with SMTP; 11 Oct 1999 05:57:15 -0000 Received: (qmail 15987 invoked by uid 1000); 11 Oct 1999 05:57:14 -0000 Date: Mon, 11 Oct 1999 01:57:14 -0400 From: Brian Ristuccia <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: when UseCanonicalName is off, Apache doesn't create redirects using the port provided in teh Host: header. Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0pre2i Package: apache Version: 1.3.9-8 The documentation for Apache says that when UseCanonicalName is off, Apache will form self-referential URLs using the hostname and port supplied by the client if any are supplied. While this holds true for the host, it does not hold true for the port. Instead, Apache seems to be using the port the connection was made on instead of the one provided in the Host: header. To reproduce, have a port redirector redirect port 8000 to an Apache listening on port 7000 on your local box. Then go to http://yourhost.example.com:8000/Somedirectory_without_trailing_slash and you will be redirected to http://yourhost.example.com:7000/Somedirectory_without_trailing_slash/ instead of the correct URL. -- Brian Ristuccia [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------- Received: (at 47124-done) by bugs.debian.org; 16 Jan 2004 07:17:33 +0000 >From [EMAIL PROTECTED] Fri Jan 16 01:17:33 2004 Return-path: <[EMAIL PROTECTED]> Received: from epistula.trinity.unimelb.edu.au [203.28.240.16] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1AhOEW-0004T8-00; Fri, 16 Jan 2004 01:17:33 -0600 Received: from localhost (localhost [127.0.0.1]) by epistula.trinity.unimelb.edu.au (Postfix) with ESMTP id BDB1FBF for <[EMAIL PROTECTED]>; Fri, 16 Jan 2004 18:17:29 +1100 (EST) Received: from epistula.trinity.unimelb.edu.au ([127.0.0.1]) by localhost (epistula [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00702-01-8 for <[EMAIL PROTECTED]>; Fri, 16 Jan 2004 18:17:29 +1100 (EST) Received: from bill.trinity.unimelb.edu.au (bill.trinity.unimelb.edu.au [203.28.240.2]) by epistula.trinity.unimelb.edu.au (Postfix) with ESMTP id 424C3A6 for <[EMAIL PROTECTED]>; Fri, 16 Jan 2004 18:17:29 +1100 (EST) Received: by bill.trinity.unimelb.edu.au (Postfix, from userid 1280) id 2A15117E45; Fri, 16 Jan 2004 18:17:29 +1100 (EST) Date: Fri, 16 Jan 2004 18:17:29 +1100 From: Daniel Stone <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: UseCanonicalName port redirect behaviour: fixed upstream Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J4XPiPrVK1ev6Sgr" Content-Disposition: inline User-Agent: Mutt/1.3.28i X-GnuPG-Key: 3CED7EFD X-Virus-Scanned: by amavisd-new-20030616-p3 (Debian) at trinity.unimelb.edu.au Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_14 (1.212-2003-09-23-exp) on master.debian.org X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no version=2.60-bugs.debian.org_2004_01_14 X-Spam-Level: --J4XPiPrVK1ev6Sgr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Brian, Squashing the oldest bug on the Apache list! I had a bash through the Apache code, and found this in ap_get_server_port: if (d->use_canonical_name =3D=3D USE_CANONICAL_NAME_OFF || d->use_canonical_name =3D=3D USE_CANONICAL_NAME_DNS) { return r->hostname ? ntohs(r->connection->local_addr.sin_port) : port; } That means that if UseCanonicalName is off, and a Host: header is present, the server will throw up whatever port the request came in on. Cheers! :) d --=20 Daniel Stone <[EMAIL PROTECTED] .org> Debian X Strike Force: http://people.debian.org/~branden= /xsf/ --J4XPiPrVK1ev6Sgr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAB5AJcPClnTztfv0RAjimAJ9rJjDuH59waSh3DSgVLfz/NoeFYgCfXaeQ uL/cfwxlUys2SlxNWTvaodg= =tl9E -----END PGP SIGNATURE----- --J4XPiPrVK1ev6Sgr--