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 E1305C42F for ; Tue, 5 Jun 2012 08:48:51 +0000 (UTC) Received: (qmail 2248 invoked by uid 500); 5 Jun 2012 08:48:48 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 2223 invoked by uid 500); 5 Jun 2012 08:48:48 -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 2210 invoked by uid 99); 5 Jun 2012 08:48:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 08:48:48 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_OBFU_WWW X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thrasibule.jimmy@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 08:48:40 +0000 Received: by eaak12 with SMTP id k12so2354707eaa.18 for ; Tue, 05 Jun 2012 01:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:mime-version; bh=PKwgVnao35vUdVbvmDIy1K9AoaVOzlbhd/kAuCo9v9Q=; b=QEtn/t29it//V58yB5WarmQ4wZFZ47+m3axIIAW3GfQiM/M5wfkzaTMe3tiAlecey2 6j2sIVWb4hZCtUcOes/c80rfG1vYRBMsoYkeR5wkIgQ7ebJPr3cE832FguEpgTbON5GW JOI8Z1EV/uvrlO0Y501pBc77ViFewDKgaU4JcTEkFIrOs+8KMn4LpHmC341mCDX0L/2s hYbNEmCZ5PulE/Of9vocaIwHqQb188+RotDMnbAUjhz5Pu+Pn8CcG8MNuWvAYiBt4ybt jK9SrwAbT6fSWUkuRUQ6uwTI1R6jSZgy5bdLIb46yR5m83oB9nMDUmH9bV+QDWmI6sgw 4awg== Received: by 10.14.127.202 with SMTP id d50mr7544875eei.193.1338886100601; Tue, 05 Jun 2012 01:48:20 -0700 (PDT) Received: from [10.0.1.26] ([213.246.250.146]) by mx.google.com with ESMTPS id s47sm3494403eef.4.2012.06.05.01.48.19 (version=SSLv3 cipher=OTHER); Tue, 05 Jun 2012 01:48:19 -0700 (PDT) Message-ID: <1338886093.11592.26.camel@sysadmin> From: Jimmy Thrasibule To: users@httpd.apache.org Date: Tue, 05 Jun 2012 10:48:13 +0200 In-Reply-To: References: <1338834529.7562.0.camel@spiro.ti-rakoun> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.1 (3.4.1-2.fc17) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [users@httpd] mod_rewrite and directory context > Second if you read mod_rewrite docs you will see that QSA flag appends > something, which is why you have double "test" as rewrite result. I just mess with the directory names but the output is correct and QSA is the behavior I want. Here is the correct logs output: GET /mypath HTTP/1.1 (2) init rewrite engine with requested uri /mypath (3) applying pattern '^/(.*)' to uri '/mypath' (4) RewriteCond: input='www.test.com' pattern='!^www\.test\.com$' [NC] => not-matched (1) pass through /mypath (3) [perdir /var/www/example/] strip per-dir prefix: /var/www/example/mypath -> mypath (3) [perdir /var/www/example/] applying pattern '^/(.*)$' to uri 'mypath' (1) [perdir /var/www/example/] pass through /var/www/example/mypath File does not exist: /var/www/example/mypath So it looks like that `mod_rewrite` is applying the last rule but the conditions are not tested. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org