Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7DE3E104D4 for ; Wed, 4 Dec 2013 21:57:01 +0000 (UTC) Received: (qmail 79215 invoked by uid 500); 4 Dec 2013 21:56:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 79169 invoked by uid 500); 4 Dec 2013 21:56:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 79160 invoked by uid 99); 4 Dec 2013 21:56:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 21:56:58 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [212.82.109.200] (HELO nm24-vm9.bullet.mail.ird.yahoo.com) (212.82.109.200) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 04 Dec 2013 21:56:51 +0000 Received: from [77.238.189.230] by nm24.bullet.mail.ird.yahoo.com with NNFMP; 04 Dec 2013 21:56:29 -0000 Received: from [212.82.108.240] by tm11.bullet.mail.ird.yahoo.com with NNFMP; 04 Dec 2013 21:56:29 -0000 Received: from [127.0.0.1] by omp1005.mail.ird.yahoo.com with NNFMP; 04 Dec 2013 21:56:29 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 743359.23435.bm@omp1005.mail.ird.yahoo.com Received: (qmail 62225 invoked by uid 60001); 4 Dec 2013 21:56:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1386194189; bh=L7lwkJZni1vp8l6z98VV6zBefAB+6NDo3qxER47xc2I=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=IoNiuXsCh/zdTJHuwU3BSX4N73BT0Cn52K3WE/CmXQoN2tiFU0Skf5sW50pdbrH20P8JtHJ5NTPtQ+fJvQFUxaIWp4dyPERvWMUHhe4L9t3QauGIf7SmwXOLCHoT3RwnTYf/uizNCz9iYWR2fkpKVhCHh3oGQtiE0M4etMlIrqU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=4RkCnEe56r5MEflQr5+2l9gFl/LjaXdXnnQTS/VKgPVyqsAWfUrAg8wBH7+Ht2JvHBFZyskc0hcOAQEFpDBQLYgSMNjG0UgsWQuq1cefgr9c6Vj6QDaXfUM10Z7i1wQMaf6UrgiGgZZ9YGh5ahilQ6HwMn86Q2sXiBWd4EilIe8=; X-YMail-OSG: .Q61mdAVM1mEk24_EcWZxgaw2olIEpCRPkqXdfMS0_ZyHr1 Gy3RdToelyVn0oJo4tXX7m4VUENqAIBObRU9ozIHRrtURS_RvgmqLpnBAzGC jsILULD1aCoUY7VKJtBi.lk3cvxz9gh7XMMOSoJcDPeNanzuIh21y64ggGVl gbqGXTr1bHlxmy8KijFtOD5QNy6zzc_JtHju9rx2bNeCFspVv_adNj67B8CB pooIH7BUBZINs9Z5KMG3kQYNUtrbLbFvTk2BEbxHKf3AP1w4khIr51wR8n5F ewmzbMSMNlG2O49sGJL7rRSZdGGzWK9k161Ov.PG4zLADH4F3wpTgN0tink1 PWk3YNpKXkDzfMEfHwZmO.fcNSviiH8qovkNEN.0IWXHYR3I6BPugtoSKoI2 QKsV65axRSKCvdhIPnI8GmdFXpbReBQjdr2qV_4I9SSQXHE1K9GzsOWdiPb0 lWWsGX2iEfWfVxEup9Qzav6ffBpepPksDx8eji7p3hZMJ8dF14efUGBAx5nT VTroudoGQ_G6j0bbtexSIKpKOs7An3cVb6kET3N22psjOqEv2CNCf9IFni.O aRZhN4h.oOt_A2x8TrGlZxVHNQXo9ERajCeOWo6V2JoPqE86B3_smv0yVxb5 HPtpiOHB4_oLkRyKJKsAXetwt0U8GW01VNLcTFg-- Received: from [198.6.50.15] by web171706.mail.ir2.yahoo.com via HTTP; Wed, 04 Dec 2013 21:56:29 GMT X-Rocket-MIMEInfo: 002.001,SGkKCgoKSSBhbSB2ZXJ5IG5ldyB0byBtb2RfcHJveHkuIEdvbmUgdGhydSBzb21lIHR1dG9yaWFscyBhbmQgY29uZmlndXJlZCBtb2RfcHJveHkuIEV2ZXJ5dGhpbmcgd29ya3MgZ3JlYXQgZXhjZXB0IHRoaXMgaXNzdWUuIENvdWxkbid0IHNvbHZlIGV2ZW4gYWZ0ZXIgc3BlbmRpbmcgaHJzIGluIGdvb2dsaW5nLiBJc3N1ZSBpcyAtIEkgaGF2ZSBhcGFjaGUgMiBpbiBmcm9udCBvZiB0b21jYXQgNiAocnVubmluZyBpbiBwb3J0IDgwODApIGluIG15IGludGVybmV0IHdlYnNpdGUuIEkgYW0gdXNpbmcgbW9kX3ABMAEBAQE- X-Mailer: YahooMailWebService/0.8.167.602 References: <1386193626.7282.YahooMailNeo@web171706.mail.ir2.yahoo.com> <1386194005.3934.YahooMailNeo@web171703.mail.ir2.yahoo.com> Message-ID: <1386194189.85868.YahooMailNeo@web171706.mail.ir2.yahoo.com> Date: Wed, 4 Dec 2013 21:56:29 +0000 (GMT) From: Ponmani Reply-To: Ponmani Subject: mod_proxy not redirecting servlet redirect properly To: "users@tomcat.apache.org" In-Reply-To: <1386194005.3934.YahooMailNeo@web171703.mail.ir2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1708739093-216032532-1386194189=:85868" X-Virus-Checked: Checked by ClamAV on apache.org --1708739093-216032532-1386194189=:85868 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi=0A=0A=0A=0AI am very new to mod_proxy. Gone thru some tutorials and conf= igured mod_proxy. Everything works great except this issue. Couldn't solve = even after spending hrs in googling. Issue is - I have apache 2 in front of= tomcat 6 (running in port 8080) in my internet website. I am using mod_pro= xy to mask the port 8080. In one of the servlets POST method i am redirecti= ng the request to a JSP page but port 8080 is displayed in the URL as follo= ws after successful redirect=A0http://myip.com:8080/myapp/WebContent/result= .jsp?message=3Dsuccess=0ACouldn't figure out how to avoid it. Here is my ht= tpd conf entry=0A ServerAdmin sharad@example.com ServerNa= me http://myip ServerAlias http://myip ProxyPass /myapp http://myip:8080/my= app ProxyPassReverse /myapp myip:8080/myapp ProxyPass /myapp ! RedirectMatc= h 301 ^/myapp/(.*)$ /$1 RedirectMatch 301 ^/myapp$ /=0A =0ACa= n someone pls. let me know what the problem is? thanks --1708739093-216032532-1386194189=:85868--