Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 97903 invoked from network); 16 Jun 2005 06:45:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2005 06:45:05 -0000 Received: (qmail 86974 invoked by uid 500); 16 Jun 2005 06:44:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 86954 invoked by uid 500); 16 Jun 2005 06:44:55 -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 86940 invoked by uid 99); 16 Jun 2005 06:44:55 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from polaris.atos-infogerance.fr (HELO polaris.atos-infogerance.fr) (193.56.241.12) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Jun 2005 23:44:52 -0700 Received: from minotaure.atos-infogerance.fr ([193.56.47.17]) by polaris.atos-infogerance.fr (8.12.10/8.12.10) with ESMTP id j5G6Fw3t012525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 16 Jun 2005 08:15:58 +0200 (MET DST) Received: from exchange2k301.gaia.fr (localhost.localdomain [127.0.0.1]) by minotaure.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id j5G6Fu6O020049 for ; Thu, 16 Jun 2005 08:15:56 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Thu, 16 Jun 2005 08:15:56 +0200 Message-ID: <8C29B2F93BAE9047A906EF6D6F9C5D43306983@exchange2k301.gaia.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] RewriteRule problems Thread-Index: AcVxAgChfcVvrZv6TeOlvXgCd3u+IQAANPDAAE38aXA= From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: X-Virus-Checked: Checked Subject: RE: [users@httpd] RewriteRule problems X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N L is not necessary when you use P. P will force the request to be = handled by mod_proxy. -ascs -----Original Message----- From: Ian Huynh [mailto:ianh@hubspan.com]=20 Sent: Tuesday, June 14, 2005 7:08 PM To: users@httpd.apache.org Subject: RE: [users@httpd] RewriteRule problems what does your rewrite log file say? If you add=20 RewriteEngine on =20 RewriteLog "/usr/local/var/apache/logs/rewrite.log" <<--- change this = to your appropriate path RewriteLogLevel 9 <<-- use level 9 = only for debugging. RewriteRule ^/old/(.*) http://ukrbcsr01/$1 [P] <<-- make sure = you don't pick up the next rules, i'd use [P,L] if the proxy was success, you would see something like this in your = rewrite log 127.0.0.1 - - [06/Jun/2005:10:20:56 --0700] = [localhost/sid#23c458][rid#82fa40/initial] (3) applying pattern = '^/old/(.*)' to uri '/old/something' 127.0.0.1 - - [06/Jun/2005:10:20:56 --0700] = [localhost/sid#23c458][rid#82fa40/initial] (2) rewrite /old/something -> = http://ukrbcsr01/something 127.0.0.1 - - [06/Jun/2005:10:20:56 --0700] = [localhost/sid#23c458][rid#82fa40/initial] (2) forcing proxy-throughput = with http://ukrbcsr01/something -----Original Message----- From: Arne Heizmann [mailto:Arne.Heizmann@csr.com] Sent: Tuesday, June 14, 2005 9:46 AM To: users@httpd.apache.org Subject: [users@httpd] RewriteRule problems Hi, I get a 403 Forbidden when trying to use a RewriteRule to proxy a = request to another server. I have two servers, ukrbcsr01 and ukrbcsr02. ukrbcsr02 is accessible = from the outside, ukrbcsr01 isn't. Their LAN IPs are 192.168.0.131 and = 192.168.0.132, respectively. I can access one from the other, so I know = that both Apaches are running correctly and the LAN is working. Now I added the following RewriteRule to ukrbcsr02: RewriteEngine On RewriteRule ^/old/(.*) http://ukrbcsr01/$1 [P] I was hoping that [P] would work to proxy the request to the other = server, but what I get instead is a 403 Forbidden when I try to access = /old/something. I get the same 403 even when I stop the Apache on = ukrbcsr01, so it must be ukrbcsr02 that generates the Forbidden message = without even attempting to proxy the request. Thanks for any advice you can give. Arne Heizmann ********************************************************************** This email and any files transmitted with it are confidential and = intended solely for the use of the individual or entity to whom they are = addressed. If you have received this email in error please notify the = system manager. ********************************************************************** --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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