Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39E29D116 for ; Tue, 13 Nov 2012 22:21:43 +0000 (UTC) Received: (qmail 26997 invoked by uid 500); 13 Nov 2012 22:21:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 26968 invoked by uid 500); 13 Nov 2012 22:21:40 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 26960 invoked by uid 99); 13 Nov 2012 22:21:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 22:21:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yehuda@ymkatz.net designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-ob0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 22:21:34 +0000 Received: by mail-ob0-f173.google.com with SMTP id x4so2569882obh.18 for ; Tue, 13 Nov 2012 14:21:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=dkim-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:x-gm-message-state; bh=Q8KcyNS/d0pH3VLVvOkJUahnzKbPH0q8guppfnbO60o=; b=biCalzKKVrazPiE1jUgX8moy+qrR9PJAwAIFJEGXH6kf6Zhux3f7YVmK/TKEAfZWEY 2rsXm7coI+xhcXfP9i6DJBPSIScFvg8TbjGysuUQUl+tlv5vaTJUs7Np63G75D9VYPr/ lcasu3jDs9hAyTgAM2eeQMZmZOBU3kuvCAyR/whjCmjWivIgF9jhvInhkIw/IJSVhKGG IsHJ8QOMK6Ov5P5Uu5kFrwIOoxpLcfI0kyurIyVZxIbIX4uQwkt9Ekc1sDZqwHbbDdIZ AxxThBKS/2fTjJVcNhJ86cjU+ATAfrITkSTCh1xAFWaUWdZRLc0nPypjW5jE6sU2Af0Q AQsg== Received: by 10.60.3.132 with SMTP id c4mr3111223oec.57.1352845273428; Tue, 13 Nov 2012 14:21:13 -0800 (PST) Received: from mail-oa0-f45.google.com (mail-oa0-f45.google.com [209.85.219.45]) by mx.google.com with ESMTPS id c18sm11161736obc.17.2012.11.13.14.21.12 (version=SSLv3 cipher=OTHER); Tue, 13 Nov 2012 14:21:12 -0800 (PST) Received: by mail-oa0-f45.google.com with SMTP id i18so10204749oag.18 for ; Tue, 13 Nov 2012 14:21:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymkatz.net; s=g; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Q8KcyNS/d0pH3VLVvOkJUahnzKbPH0q8guppfnbO60o=; b=HEgu5CFX6kDFoup0M8V1k3jEjp9fcja/stpQACR3tzTBDjL8kUL1oshh9Oqlwc93hR BuCbjjtz0BPyitHkdhl4TCvmOBXrR+brWGbtFIBeUWm59lyrW98+7TQAvzNqXFllTvte oX60NmL7qL50Ma+VODIFtDzKg06BAEjMNmvCg= Received: by 10.60.31.234 with SMTP id d10mr19072698oei.123.1352845272352; Tue, 13 Nov 2012 14:21:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.26.227 with HTTP; Tue, 13 Nov 2012 14:20:52 -0800 (PST) In-Reply-To: <50A2C1AD.6020302@lsces.co.uk> References: <509D468D.60205@lsces.co.uk> <50A208AE.8040200@lsces.co.uk> <50A26F73.5070106@globalia-sistemas.com> <50A2790D.1050004@lsces.co.uk> <50A27E14.1060309@indietorrent.org> <50A28237.2000809@lsces.co.uk> <50A2AEF1.1070209@lsces.co.uk> <50A2B376.9030108@indietorrent.org> <50A2BD81.2070904@lsces.co.uk> <50A2BFC0.9000506@indietorrent.org> <50A2C1AD.6020302@lsces.co.uk> From: Yehuda Katz Date: Tue, 13 Nov 2012 17:20:52 -0500 Message-ID: To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=e89a8f838e49e5079e04ce67d59f X-Gm-Message-State: ALoCoQmBvJ5a4BZ8fit3s0zxCcsba6ojLIlXWvw5RCkoFNQgNNUvQWqI9qmv2nFyk/KFyvIol/ug X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] 403 Forbidden ... --e89a8f838e49e5079e04ce67d59f Content-Type: text/plain; charset=ISO-8859-1 On Tue, Nov 13, 2012 at 4:54 PM, Lester Caine wrote: > lines like > RewriteRule ^/?wiki/view/(.+)$ /wiki/index.php?page=$1 [L] > > have been ammended to > > RewriteRule ^/?wiki/view/(.+)$ /srv/website/eveshamtc.org.uk/**wiki/index.php?page=$1 > [L] > > 'A web-path to a resource' is not using the DocumentRoot setting I heard the same issue from someone else. While the documentation has not changed from 2.2, I am wondering if it is now being done differently in 2.4. First: The reason you had a change when you modified the require directive is because it was trying to match against /wiki on the file system. (Note that a URL-path will be interpreted as a file-system path is such a file exists. Do you have a /wiki folder? Or, might 2.4 not be checking that properly?) You could probably drop the leading slash and it would work (my only dev server on 2.4 is Windows, so no guarantee that it is the same). Have a look at the grey boxes at the top of http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewriterule that explain how per-directory rules are processed, particularly the third point in the second box: the per-directory prefix is only added to the result for rules that are in a block or .htaccess, not for other containers. --e89a8f838e49e5079e04ce67d59f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Nov 13, 2012 at 4:54 PM, Lester Caine <lester@ls= ces.co.uk> wrote:
lines like
RewriteRule =A0^/?wiki/view/(.+)$ =A0/wiki/index.php?page=3D$1 =A0[L]

have been ammended to

RewriteRule =A0^/?wiki/view/(.+)$ /srv/website/eveshamtc.org.uk/wiki/index.php?page=3D$1 =A0[L]

'A web-path to a resource' is not using the DocumentRoot setting

I heard the same issue from someone else. Whi= le the documentation has not changed from 2.2, I am wondering if it is now = being done differently in 2.4.

First: The reason you had a change when you modified th= e <Directory /> require directive is because it was trying to match a= gainst /wiki on the file system. (Note that a URL-path will be interpreted = as a file-system path is such a file exists.=A0Do you have a /wiki folder?= =A0Or, might 2.4 not be checking that properly?)
You could probably drop the leading slash and it would work (my only d= ev server on 2.4 is Windows, so no=A0guarantee that it is the same).
<= div>Have a look at the grey boxes at the top of=A0http://httpd.apache.or= g/docs/2.4/mod/mod_rewrite.html#rewriterule=A0that explain how per-dire= ctory rules are processed, particularly the third point in the second box: = the per-directory prefix is only added to the result for rules that are in = a <Directory> block or .htaccess, not for other containers.

--e89a8f838e49e5079e04ce67d59f--