httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] mod_proxy and mod_rewrite issue
Date Thu, 16 Apr 2009 06:05:33 GMT
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 ==>
> Now, I want to use the url 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 and to be redirected to
without displaying the URL 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 "" to 
"", 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 :

If you do that, then you could access your (formerly) /myapp application 
  directly on Tomcat by "".
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 <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message