You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Cartwright <jo...@noaa.gov> on 2012/01/23 18:26:18 UTC

[users@httpd] order in which RewriteRule, ProxyPass directives applied

Hello All,

I'm trying to find a way to apply a RewriteRule prior to a ProxyPass
seeing the request - can that be done?

My situation is that I have a tomcat webapp deployed as foo.war and I'd
like requests for it to come through  apache as "/public/test/".

It appears to me that currently the ProxyPass, e.g. "ProxyPass /foo 
ajp://localhost:8009/foo" is catching the request before the RewriteRule
can apply to it.

Thanks!

--john


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Re: [users@httpd] order in which RewriteRule, ProxyPass directives applied

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jan 23, 2012 at 12:26 PM, John Cartwright
<jo...@noaa.gov> wrote:
> Hello All,
>
> I'm trying to find a way to apply a RewriteRule prior to a ProxyPass
> seeing the request - can that be done?

mod_proxy in 2.2 goes out of its way to run reliably before the
Rewrite. You might try using Rewrite ... [P] instead of this one
ProxyPass which would allow you to precede with your rewrites.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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