Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 76378 invoked from network); 11 Apr 2006 21:55:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2006 21:55:51 -0000 Received: (qmail 88849 invoked by uid 500); 11 Apr 2006 21:55:47 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 88735 invoked by uid 500); 11 Apr 2006 21:55:46 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 88724 invoked by uid 99); 11 Apr 2006 21:55:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 14:55:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [80.229.52.226] (HELO asgard.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 14:55:45 -0700 Received: from asgard (asgard [192.168.10.2]) by asgard.webthing.com (Postfix) with ESMTP id C8A2964556 for ; Tue, 11 Apr 2006 22:55:23 +0100 (BST) From: Nick Kew Organization: WebThing Ltd To: dev@httpd.apache.org Subject: Re: svn commit: r393037 - in /httpd/httpd/trunk: CHANGES server/protocol.c Date: Tue, 11 Apr 2006 22:55:20 +0100 User-Agent: KMail/1.8.3 References: <20060410195936.8630.qmail@minotaur.apache.org> <443C1A10.2050100@apache.org> <443C1B46.9020505@rowe-clan.net> In-Reply-To: <443C1B46.9020505@rowe-clan.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604112255.22872.nick@webthing.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tuesday 11 April 2006 22:10, William A. Rowe, Jr. wrote: > Ruediger Pluem wrote: > > On 04/11/2006 04:00 AM, Roy T. Fielding wrote: > >>It probably needs to be updated for RFC 3986 anyway. The path should > >>be set to "", not NULL. The HTTP server should take care of the > >>redirect from "" to "/", which in this case means the http-proxy > >>needs to check for "" when it sends a request and respond with a > >>redirect that adds the "/". Um, it's not really a redirect; it's just a normalisation. Shouldn't really invoke any redirect logic, whether internal or external. > > In general I agree, but I think the transformation from "" to "/" > > must happen very early to avoid disturbing the cache code in the quick > > handler. So I guess this could be only done in the post_read_request hook > > of the proxy, but I don't think that we can trigger a redirect from this > > hook. Provided my thoughts are not wrong, anybody an idea how to solve > > this? Just adjust the URL itself in that hook? > If I read this correctly, http://foo.example.com is wrong, whereas > http://foo.example.com/ is correct. No. Both forms are correct, and equivalent (by definition). > Does it merit an external redirect, > much as http://foo.example.com/dirname would externally redirect the > user to http://foo.example.com/dirname/ That's different, because the two are of course distinct in URL-space. -- Nick Kew