Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 78319 invoked from network); 21 Feb 2006 15:53:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Feb 2006 15:53:25 -0000 Received: (qmail 39989 invoked by uid 500); 21 Feb 2006 15:53:11 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 39946 invoked by uid 500); 21 Feb 2006 15:53:10 -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 39819 invoked by uid 99); 21 Feb 2006 15:53:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 07:53:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.109.24.28] (HELO smtp-vbr8.xs4all.nl) (194.109.24.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 07:53:09 -0800 Received: from webmail.xs4all.nl (dovemail2.xs4all.nl [194.109.26.4]) by smtp-vbr8.xs4all.nl (8.13.3/8.13.3) with ESMTP id k1LFqcKK034250; Tue, 21 Feb 2006 16:52:43 +0100 (CET) (envelope-from sanguis@xs4all.nl) Received: from 194.151.119.130 (SquirrelMail authenticated user sanguis) by webmail.xs4all.nl with HTTP; Tue, 21 Feb 2006 16:52:44 +0100 (CET) Message-ID: <16702.194.151.119.130.1140537164.squirrel@webmail.xs4all.nl> In-Reply-To: <8C29B2F93BAE9047A906EF6D6F9C5D430166EF7E@exchange2k301.gaia.fr> References: <8C29B2F93BAE9047A906EF6D6F9C5D430166EF7E@exchange2k301.gaia.fr> Date: Tue, 21 Feb 2006 16:52:44 +0100 (CET) From: "Joost de Heer" To: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= , dbhull1@hotmail.com Cc: users@httpd.apache.org Reply-To: sanguis@xs4all.nl User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Re: RewriteRule being ignored X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Axel-St�phane SMORGRAV wrote: > If memory serve me right, all mod_proxy hooks execute before mod_rewrite > in Apache 2.0. Module ordering is irrelevant. In that case, reverse proxying must be done with mod_rewrite, something like (untested!): ServerName www.myserver.com RewriteEngine On RewriteCond %{REQUEST_URI} ^/gift/.* RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=$1 RewriteCond %{REQUEST_URI} ^/gift/.* RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=$1 RewriteCond %{REQUEST_URI} ^/download/.* RewriteRule /(.*) http://www.myserver.com/$1 [P,L] RewriteRule /(.*) http://127.0.0.1:8080/$1 [P] ProxyPassReverse /download/ http://www.myserver.com/download/ ProxyPassReverse / http://127.0.0.1:8080/ Possibly with a few extra RewriteCond's to avoid looping. Joost --------------------------------------------------------------------- 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