Return-Path: Delivered-To: apmail-httpd-docs-archive@www.apache.org Received: (qmail 79558 invoked from network); 10 Aug 2009 20:24:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 20:24:41 -0000 Received: (qmail 39195 invoked by uid 500); 10 Aug 2009 20:24:48 -0000 Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 39132 invoked by uid 500); 10 Aug 2009 20:24:47 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 39123 invoked by uid 99); 10 Aug 2009 20:24:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 20:24:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of margol@beamartyr.net designates 199.203.54.245 as permitted sender) Received: from [199.203.54.245] (HELO hector.mirimar.net) (199.203.54.245) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 20:24:37 +0000 Received: from [192.168.3.116] (bzq-82-81-129-250.red.bezeqint.net [82.81.129.250]) (authenticated bits=0) by mail1.mirimar.net (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id n7AKNwdj017116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Aug 2009 23:24:11 +0300 Message-ID: <4A8081F6.8000808@beamartyr.net> Date: Mon, 10 Aug 2009 23:24:22 +0300 From: Issac Goldstand User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: docs@httpd.apache.org Subject: Re: Patch for mod_alias.xml References: <4A80472B.4020308@beamartyr.net> <1404e5910908101037h72c7ee77n97a8067b5fce6446@mail.gmail.com> <4A806B33.5030703@beamartyr.net> <1404e5910908101234k1bc717dcs50015b633da54aac@mail.gmail.com> In-Reply-To: <1404e5910908101234k1bc717dcs50015b633da54aac@mail.gmail.com> X-Enigmail-Version: 0.96.0 OpenPGP: url=http://www.beamartyr.net/pubkey.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hector.mirimar.net X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.5 required=4.0 tests=AWL,BAYES_00,RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 Eric Covener wrote: > On Mon, Aug 10, 2009 at 2:47 PM, Issac Goldstand wrote: > >> Eric Covener wrote: >> >>> On Mon, Aug 10, 2009 at 12:13 PM, Issac Goldstand wrote: >>> >>> >>>> Hi, >>>> After a colleague at work was struggling with the Redirect directive, >>>> I realized that the docs could be a bit clearer. I prepared a small >>>> patch, but didn't want to commit myself simply because I'm not 100% sure >>>> of the patch-xml/ant/html processes for committing doc patches. >>>> >>>> This is against httpd-2.2.13 (should patch fine to trunk, too). >>>> >>>> Issac >>>> >>>> Index: manual/mod/mod_alias.xml >>>> =================================================================== >>>> --- manual/mod/mod_alias.xml (revision 800376) >>>> +++ manual/mod/mod_alias.xml (working copy) >>>> @@ -214,7 +214,8 @@ >>>> >>>>

Then any request beginning with URL-Path will return a >>>> redirect request to the client at the location of the target >>>> - URL. Additional path information beyond the matched >>>> + URL. If URL-Path ends with a trailing slash, >>>> + then additional path information beyond the matched >>>> URL-Path will be appended to the target URL.

>>>> >>>> >>> Can you demonstrate the trailing-slash/no-trailing-slash difference >>> this is describing? I wasn't able to recreate. >>> >>> >>> >> Sure. I'll do this from memory, but if you can't reproduce, I'll try to >> get a hold of the old config that my colleague was bashing his head against. >> >> Let's say you have a line Redirect 301 /foo/bar. /baz/bar.extension >> >> One would assume from the docs that this would rewrite >> /foo/bar.something to /baz/bar.extension.something >> >> However, this isn't the case, since /foo/bar.something doesn't end with >> a / and therefore mod_alias is looking for an exact match (in >> alias_matches) and the request doesn't get modified at all >> >> The redirect would need to be done using RedirectMatch or mod_rewrite >> >> > > OK, i think it just needs more careful phrasing. I read the updated > behavior as implying: > > Redirect /a/b http://example.com/x > > Wouldn't send /a/b/c to http://example.com/x/c > > So it needs to capture that aspect of no-trailing-slash as well. > > That was the point. It should convey that the auto-completion only works if URL-Path ends with a / --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org For additional commands, e-mail: docs-help@httpd.apache.org