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 8681310855 for ; Wed, 4 Dec 2013 23:15:15 +0000 (UTC) Received: (qmail 64952 invoked by uid 500); 4 Dec 2013 23:15:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 64910 invoked by uid 500); 4 Dec 2013 23:15:11 -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 64901 invoked by uid 99); 4 Dec 2013 23:15:11 -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 23:15:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 23:15:07 +0000 Received: by mail-wg0-f54.google.com with SMTP id n12so14994203wgh.9 for ; Wed, 04 Dec 2013 15:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=rPNg3nCvzxRwks37ek3DpvtuWEdPfS9HS15T5CzHoEY=; b=RwAsZuX8YqZVpa7HhDKOCRV7HLid/q1fOACPYEd0muydirpQ0/8nrBxkGbJUYZVn4g BfL03h+cP2bmduVeCt92OnHEhfBYfpw67xyhGBrDSfum8uaoKPNwCSiwxgt3SKsiE7dN f/O5NSm0cgNWZQyygWsa8NMOHpmeKIvDcrOV3Ito2SFwlLPReUnjZfteW+aGC7lsobgx upocIUU0zEa0O+t0kpdhxZiEUdUJ3Eyy5lStPPVKrS9IwDp+t1Kj8LwSilk1T+hjREdL hnmBySX0wH8DAAWyaS2bo2k8QUwThgPUZHFDL8sKQKYjvlLQL1mRzrhRPzt2fnwedIJl QMxw== MIME-Version: 1.0 X-Received: by 10.194.122.99 with SMTP id lr3mr64302264wjb.21.1386198885901; Wed, 04 Dec 2013 15:14:45 -0800 (PST) Received: by 10.216.70.203 with HTTP; Wed, 4 Dec 2013 15:14:45 -0800 (PST) In-Reply-To: <1386194189.85868.YahooMailNeo@web171706.mail.ir2.yahoo.com> References: <1386193626.7282.YahooMailNeo@web171706.mail.ir2.yahoo.com> <1386194005.3934.YahooMailNeo@web171703.mail.ir2.yahoo.com> <1386194189.85868.YahooMailNeo@web171706.mail.ir2.yahoo.com> Date: Thu, 5 Dec 2013 03:14:45 +0400 Message-ID: Subject: Re: mod_proxy not redirecting servlet redirect properly From: Konstantin Kolinko To: Tomcat Users List , Ponmani Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2013/12/5 Ponmani : > Hi > > > > I am very new to mod_proxy. Gone thru some tutorials and configured mod_p= roxy. Everything works great except this issue. Couldn't solve even after s= pending hrs in googling. Issue is - I have apache 2 in front of tomcat 6 (r= unning in port 8080) in my internet website. I am using mod_proxy to mask t= he port 8080. In one of the servlets POST method i am redirecting the reque= st to a JSP page but port 8080 is displayed in the URL as follows after suc= cessful redirect http://myip.com:8080/myapp/WebContent/result.jsp?message= =3Dsuccess > Couldn't figure out how to avoid it. Here is my httpd conf entry > ServerAdmin sharad@example.com ServerName http://myip = ServerAlias http://myip ProxyPass /myapp http://myip:8080/myapp ProxyPassRe= verse /myapp myip:8080/myapp ProxyPass /myapp ! RedirectMatch 301 ^/myapp/(= .*)$ /$1 RedirectMatch 301 ^/myapp$ / > > Can someone pls. let me know what the problem is? thanks http://tomcat.apache.org/tomcat-6.0-doc/config/http.html See "proxyPort" attribute. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org