Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 70310 invoked from network); 28 Nov 2010 21:47:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Nov 2010 21:47:11 -0000 Received: (qmail 27455 invoked by uid 500); 28 Nov 2010 21:47:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27434 invoked by uid 500); 28 Nov 2010 21:47:08 -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 27426 invoked by uid 99); 28 Nov 2010 21:47:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 21:47:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of i.galic@brainsware.org designates 188.40.115.121 as permitted sender) Received: from [188.40.115.121] (HELO mail.brainsware.org) (188.40.115.121) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 21:47:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.brainsware.org (Postfix) with ESMTP id AF5251DE276 for ; Sun, 28 Nov 2010 21:46:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at brainsware.org Received: from mail.brainsware.org ([127.0.0.1]) by localhost (mail.brainsware.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9zxihUuPXeHS for ; Sun, 28 Nov 2010 21:46:39 +0000 (UTC) Received: from mail.brainsware.org (mail.brainsware.org [188.40.115.121]) by mail.brainsware.org (Postfix) with ESMTP id EAE451DE273 for ; Sun, 28 Nov 2010 21:46:39 +0000 (UTC) Date: Sun, 28 Nov 2010 21:46:39 +0000 (UTC) From: =?utf-8?Q?Igor_Gali=C4=87?= To: users@httpd.apache.org Message-ID: <26045641.1598.1290980799814.JavaMail.root@iris> In-Reply-To: <597277279.1596.1290980599458.JavaMail.root@iris> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [91.130.162.63] X-Mailer: Zimbra 6.0.5_GA_2213.DEBIAN5_64 (ZimbraWebClient - FF3.0 (Linux)/6.0.5_GA_2213.DEBIAN5_64) Subject: Re: [users@httpd] Path-rewritten file with path info served (mod_rewrite & AcceptPathInfo Off) ----- fictive@sci.fi wrote: > I have set AcceptPathInfo Off, yet I receive the file in question when > it's served through > rewritten path using mod_rewrite, as if I had AcceptPathInfo On. > This doesn't seem to be the correct behavior, am I missing something? >=20 > (Using Apache 2.2.17 from Arch Linux repositories with shipped > configuration, > only change was AllowOverride All.) quoting the #httpd bot a really bad idea, because it implies AllowOverride Options, which lets people do stuff like Options FollowSymlinks and Options ExecCGI, even though they are explicitly disabled in the main config. > ### Test case 1/2 > GET http://localhost/testdir/txt-file/XYZ/ A direct request to the > file is made with additional path info (/XYZ/). > Result: 404. >=20 > ### Test case 2/2 > Request the file matching RewriteCond with additional path info > (/XYZ/). Rewrite rules below. > GET http://localhost/txt-file/XYZ/ Result: The file "txt-file" is > served. >=20 >=20 > RewriteEngine On > AcceptPathInfo Off > RewriteCond %{REQUEST_URI} !^/testdir > RewriteRule ^(.*)$ /testdir/$1 put this in vhost context. Enable RewriteLog, post the results. See this presentation: http://people.apache.org/~rbowen/presentations/Apache_Nuts_Bolts_files/Apac= he_Nuts_Bolts.079.jpg through http://people.apache.org/~rbowen/presentations/Apache_Nuts_Bolts_files/Apac= he_Nuts_Bolts.115.jpg To see how to make RewriteLog humanly readable. i --=20 Igor Gali=C4=87 Tel: +43 (0) 664 886 22 883 Mail: i.galic@brainsware.org URL: http://brainsware.org/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org