httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Samad - Yieldbroker <>
Subject RE: [users@httpd] Proxy Tomcat
Date Sun, 20 Nov 2011 00:47:45 GMT

Sorry the last line should have read


this is all I am doing on my reverse proxy

client -> apache -> tomcat

apache and tomcat are on the same box (I have another setup were tomcat isn’t).

one thing I do do is keep the pathing the same. But the arguments definitely get transferred
over, a lot of the calling apps use get’s not posts

so I have

http://rp/<path>/app?variables<http://rp/%3cpath%3e/app?variables> get’s reverse
proxied to http://tomcat:8080/<path>/app?variables<http://tomcat:8080/%3cpath%3e/app?variables>

all with just using proxypass, proxypathreverse (my understanding) is when you change the
path bit.

And mod_rewrite is when you want to do extra special things to the url, apart from simple
change of path.


From: Ricardo Bayley []
Sent: Sunday, 20 November 2011 6:18 AM
Subject: Re: [users@httpd] Proxy Tomcat

Hi Alex,

No, I want is this.

request => http://server01/wms?somearguments
converts => http:// server02:8080/gwc/wms?somearguments

This should be proxied, not redirected.

If I do what u mention, dont know why arguments are not sent. I guess you are not Rewriting



2011/11/19 Alex Samad - Yieldbroker <<>>

My understanding is that if you have
   ProxyPassReverse /
   ProxyPass /

And you make a request for

it converts its into


Which is what you want ?


From: Ricardo Bayley [<>]
Sent: Sunday, 20 November 2011 2:12 AM
Subject: Re: [users@httpd] Proxy Tomcat

Hi Alex, and Congo, I dont see how to concat the Proxy with the "?"

Congo, I do have a vhost for every geo service. What I am trying to do is to Proxy request
using apache. This way I dont have to have all tomcats in the open. But as you can see, I
am failing to do so. :(

So do you have a sample on how to do it ?

regards to both,


2011/11/19 Alex Samad - Yieldbroker <<>>

Why not have

   ProxyPassReverse /
   ProxyPass /


From: Ricardo Bayley [<>]
Sent: Saturday, 19 November 2011 8:54 AM
Subject: [users@httpd] Proxy Tomcat

Hi folks,

I am trying to proxy a request.
I have this input

it should be turned into

   ProxyPassReverse /
   ProxyPass /
   RewriteEngine On
# RewriteCond some condition
   RewriteRule   ^/wms(.*)${QUERY_STRING}<>

If I write =>  RewriteRule   ^/wms(.*)${QUERY_STRING} [P]
then %{QUERY_STRING} wont be placed.
But if I don't place the "?" then I am not properly forming the request.

Can anyone help ?

best regards,


View raw message