Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 30057 invoked from network); 7 Jul 2006 07:11:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 07:11:50 -0000 Received: (qmail 45150 invoked by uid 500); 7 Jul 2006 07:11:41 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 45136 invoked by uid 500); 7 Jul 2006 07:11:40 -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 45125 invoked by uid 99); 7 Jul 2006 07:11:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 00:11:40 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ravish.agarwal@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 00:11:39 -0700 Received: by nf-out-0910.google.com with SMTP id k27so22377nfc for ; Fri, 07 Jul 2006 00:11:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=prUA3s42n4a56r3ABst7/WC3Sehy7HiFRvZxExfq/NojSEa+sNSRFJNvGF92EVyqVCvA+QpI6bTY46/AdK+7GxRFkBSxyaL8EaQivkrB9wjkWHnQFkawfuPDnLtA8loNr7kd5VSNxtKaanMvK4aXupECSN7A7swebkCgI6WMqDU= Received: by 10.48.143.13 with SMTP id q13mr1110123nfd; Fri, 07 Jul 2006 00:11:17 -0700 (PDT) Received: by 10.49.49.14 with HTTP; Fri, 7 Jul 2006 00:11:17 -0700 (PDT) Message-ID: Date: Fri, 7 Jul 2006 12:41:17 +0530 From: "Ravish Agarwal" To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] problem with mod_rewrite rewiterule with [P](internal proxying) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi All, We are using apache WebServer version 2.0.55 on HP-UX version 11iand we are trying to redirect the requests to another WebServer on the same host We have made the following entries in the httpd.conf file. ProxyRequests On ProxyPass /metso http://mgtpdma3.rau.valmet.com:7003/metso ProxyPassReverse /metso http://mgtpdma3.rau.valmet.com:7003/metso SetEnv proxy-nokeepalive 1 ProxyPreserveHost On RewriteCond %{REQUEST_URI} (.*\.jsp$)|(.*/servlet/.*)|(.*/workspace/.*)|(.*\.do$) RewriteRule ^/metso/(.*) http://mgtpdma3.rau.valmet.com:7003/metso/$1 [P]. But this returns the http-404 message. Entries in the rewrite.log says 192.168.251.204 - - [06/Jul/2006:13:08:21 +0300] [mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (2) init rewrite engine with requested uri /metso/login.jsp 192.168.251.204 - - [06/Jul/2006:13:08:21 +0300] [mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (3) applying pattern '^/metso/(.*)' to uri '/metso/login.jsp' 192.168.251.204 - - [06/Jul/2006:13:08:21 +0300] [mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (2) rewrite /metso/login.jsp -> http://mgtpdma3.rau.valmet.com:7003/metso/login.jsp 192.168.251.204 - - [06/Jul/2006:13:08:21 +0300] [mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (2) forcing proxy-throughput with http://mgtpdma3.rau.valmet.com:7003/metso/login.jsp 192.168.251.204 - - [06/Jul/2006:13:08:21 +0300] [mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (1) go-ahead with proxy request proxy:http://mgtpdma3.rau.valmet.com:7003/metso/login.jsp [OK] But the loging page is not shown at all. However it we remove the [P] tag. Then the external redirection works fine. But our requirement is to do the redirection through internal proxy so that end-user does know about the same. httpd -I shows the following output. $ ./httpd -l Compiled in modules: core.c worker.c http_core.c mod_so.c Do we need to have mod_proxy.c as a compiled module for this functionality with apache 2.0.55??? Please help me out. Thanks and regards Ravish. -- Thank and Regards Ravish Agarwal --------------------------------------------------------------------- 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