httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <>
Subject Re: [users@httpd] mod_proxy_http rewrite problem
Date Sun, 10 Jun 2018 19:31:50 GMT
Hi HB,

On Sun, Jun 10, 2018 at 5:05 PM, Herb Burnswell
<> wrote:
> I need the proxy to work as:
> I'm thinking this may require use of  RewriteCond directives, however I may
> be going about this wrong.
> Is there a way to define an 'active' request to avoid looping through the
> same ProxyPass or ProxyPassMatch needed for an initial request?

I'm not sure to understand, you want the request to be without
"/frontpage" suffix between the browsers and the proxy (i.e. and with the suffix added between proxy
and the backend (i.e., right?

If this is the case, maybe something like this then (the opposite
rewrite of what I've told you so far :p ):
    ProxyPass / balancer://applicationcluster/frontpage/ ...
    ProxyPassReverse / balancer://applicationcluster/frontpage/
You would then remove the "/frontpage" suffix from the BalancerMember

Since ProxyPass would do the rewrite from "/" => "/frontpage/", you
don't need mod_rewrite here.
There is no case where "/frontpage" (without the trailing '/') can
arrive on the backend side since ProxyPass will always start the
forwarded path with "/frontpage/", but I suppose "/frontpage" and
"/frontpage/" work equally on the backend no?

Hope that helps..


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message