Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 59671 invoked from network); 16 Apr 2009 06:06:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 06:06:19 -0000 Received: (qmail 94663 invoked by uid 500); 16 Apr 2009 06:06:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 94598 invoked by uid 500); 16 Apr 2009 06:06:15 -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 94589 invoked by uid 99); 16 Apr 2009 06:06:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 06:06:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 06:06:06 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id DA61C226070 for ; Thu, 16 Apr 2009 08:03:46 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ql7zV6vMmFpL for ; Thu, 16 Apr 2009 08:03:46 +0200 (CEST) Received: from [192.168.245.129] (p549EB249.dip0.t-ipconnect.de [84.158.178.73]) by tor.combios.es (Postfix) with ESMTPA id 6EA6122606E for ; Thu, 16 Apr 2009 08:03:46 +0200 (CEST) Message-ID: <49E6CAAD.70501@ice-sa.com> Date: Thu, 16 Apr 2009 08:05:33 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: aw@ice-sa.com User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: users@httpd.apache.org References: <23061118.post@talk.nabble.com> <49E5FE56.8030603@ice-sa.com> <23063343.post@talk.nabble.com> <49E6297D.1060403@ice-sa.com> <1404e5910904151154l5164672we9a5b376e4e8d9be@mail.gmail.com> <49E63361.9020300@ice-sa.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_proxy and mod_rewrite issue inas inassen wrote: > Hi all, > > > > I have a web application running on tomcat with a context myapp > > I access this webapp via apache using a proxypass and proxy balancer ==> http://myserver.com/myapp > > > > Now, I want to use the url http://myserver.com and apache will forward my request to tomcat by adding the URI /myapp to this URL. > > mod_rewrite does that, but my question is that how can I avoid displaying the context path in the browser adress bar? > > > > so I want to write http://myserver.com/abd and to be redirected to http://myserver.com/myapp/abd without displaying the URL http://myserver.com/myapp/abd in the adress bar. > > > I believe you are missing an element above : both Apache and Tomcat cannot be listening on the same port 80 on the same server. So you must be proxying "http://myserver.com/abd" to "http://myserver.com:8080/myapp/abd", no ? Anyway, do you have other applications than "/myapp" on your Tomcat server ? If not, then you could make /myapp be the ROOT application under Tomcat. See here for info of how to do that : http://wiki.apache.org/tomcat/HowTo #38 If you do that, then you could access your (formerly) /myapp application directly on Tomcat by "http://myserver.com:8080". And by consequence, you could also from Apache proxy directly there. Another thing : have you looked at the AJP connectors (mod_proy_ajp and mod_jk) ? --------------------------------------------------------------------- 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