Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 42041 invoked from network); 22 Apr 2010 12:10:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 12:10:36 -0000 Received: (qmail 13560 invoked by uid 500); 22 Apr 2010 12:10:33 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 13546 invoked by uid 500); 22 Apr 2010 12:10:33 -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 13534 invoked by uid 99); 22 Apr 2010 12:10:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 12:10:33 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tevans.uk@googlemail.com designates 209.85.218.226 as permitted sender) Received: from [209.85.218.226] (HELO mail-bw0-f226.google.com) (209.85.218.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 12:10:27 +0000 Received: by bwz26 with SMTP id 26so8292351bwz.27 for ; Thu, 22 Apr 2010 05:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=LP4kvpnne8JwRtjEbyhEJNHUyTquj17tO3pcr4shQyA=; b=seKAskYpnL2tZtHT4vrzT/o/ZGr6cT+5trzU+m8Hak9Ps7lGBaQ5xZ2gITvjaaRWpq MYn80hBeD4WN72XbdSikAphk4Qb0iFqSfOLBOecqTp1Nuvptqs8wiM6/tH5F6/1clQKA 5vcgtdDMLfRJOvBzGYdCCeK0CzYlclc+3biqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=NyoMUcWKpmgCpbxa7021K0FOsloNuknF5KJ3l/1mByGfgMQ4CQPPul1HWWOqRJH0DB bfpuFpR+uJwPPy96a8AeXTUviqzk/5xthQAmFY0Bi6p9HIq4+vwcZCJR+RpkhNCl1ye9 bjJ/ZgRsl/lyS1UyYGwDZk+Jda6dCVX+JpXds= MIME-Version: 1.0 Received: by 10.239.142.17 with HTTP; Thu, 22 Apr 2010 05:10:06 -0700 (PDT) In-Reply-To: References: <4BD01D3E.4080709@ulb.ac.be> Date: Thu, 22 Apr 2010 13:10:06 +0100 Received: by 10.239.137.12 with SMTP id j12mr831517hbj.115.1271938206387; Thu, 22 Apr 2010 05:10:06 -0700 (PDT) Message-ID: From: Tom Evans To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] RedirectMatch and ProxyPass On Thu, Apr 22, 2010 at 12:55 PM, Eric Covener wrote: >> It seems that the request goes first through mod_proxy and then only through >> mod_alias, event it the mod_alias directives (RedirectMatch) appear first >> ... is it a normal behavior ? > > It's normal, and the precedence the modules are coded for. > >> Is there a clean way to do what I want to do, without involving mod_rewrite >> if possible ? > > Make your ProxyPassMatch more conservative with what it matches, or > use Rewrite exclusively for the proxy and redirect so you have control > on the order of evaluation (top-to-bottom in each config section when > it's all RewriteRule) > Or use ProxyPass ! /path to preclude mod_proxy from proxying those requests. They will then fall through to the mod_alias directives and it will work as you expect. Cheers Tom --------------------------------------------------------------------- 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