Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 39738 invoked from network); 21 Feb 2006 17:29:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Feb 2006 17:29:24 -0000 Received: (qmail 65931 invoked by uid 500); 21 Feb 2006 17:29:00 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 65839 invoked by uid 500); 21 Feb 2006 17:29:00 -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 65791 invoked by uid 99); 21 Feb 2006 17:28:59 -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 09:28:59 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.56.241.12] (HELO polaris.atos-infogerance.fr) (193.56.241.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 09:28:58 -0800 Received: from persee.atos-infogerance.fr ([193.56.47.18]) by polaris.atos-infogerance.fr (8.12.10/8.12.10) with ESMTP id k1LHSY3R015912 for ; Tue, 21 Feb 2006 18:28:35 +0100 (MET) Received: from exchange2k301.gaia.fr ([150.175.10.40]) by persee.atos-infogerance.fr (8.13.5/8.13.5) with ESMTP id k1LIYdGh002442 for ; Tue, 21 Feb 2006 18:34:39 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 21 Feb 2006 18:28:35 +0100 Message-ID: <8C29B2F93BAE9047A906EF6D6F9C5D43016D6AA4@exchange2k301.gaia.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Re: RewriteRule being ignored Thread-Index: AcY2/tykWabPA5VvQ4WsRaw3AFzXowADQYRQ From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: 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 Has the following been suggested yet ?? VirtualHost *:80> ServerName www.myserver.com RewriteEngine On RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=3D$1 RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=3D$1 ProxyPass /gift ! ProxyPass /refer ! ProxyPass /download/ http://www.myserver.com/download/ ProxyPassReverse /download/ http://www.myserver.com/download/ ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ -ascs=20 -----Original Message----- From: Joost de Heer [mailto:sanguis@xs4all.nl]=20 Sent: Tuesday, February 21, 2006 4:53 PM To: Axel-St=E9phane SMORGRAV; dbhull1@hotmail.com Cc: users@httpd.apache.org Subject: RE: [users@httpd] Re: RewriteRule being ignored Axel-St=E9phane SMORGRAV wrote: > If memory serve me right, all mod_proxy hooks execute before=20 > 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=3D$1 RewriteCond %{REQUEST_URI} ^/gift/.* RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=3D$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