You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Bjørn Stabell <bj...@exoweb.net> on 2006/05/05 10:18:04 UTC
Proxy parameters to RewriteRule [P]
We're just trying out mod_proxy_balancer now and have come across
some shortcomings or bugs. It doesn't seem like we can pass any of
the Proxy parameters to RewriteRule, e.g.,
RewriteRule ^/mbp/(.*) balancer://ourcluster/$1 [P] timeout=20
nofailover=On stickysession=OUR_COOKIE
doesn't seem to have any effect? The session is not sticky. Using
ProxyPass works, however.
Is there a way to set such settings using RewriteRule?
Rgds,
Bjorn
Re: Proxy parameters to RewriteRule [P]
Posted by Bjørn Stabell <bj...@exoweb.net>.
On May 5, 2006, at 17:08, Robert Ionescu wrote:
> Bjørn Stabell wrote:
>> RewriteRule ^/mbp/(.*) balancer://ourcluster/$1 [P]
>> timeout=20 nofailover=On stickysession=OUR_COOKIE
>
> those (proxy) arguments are not part of the RewriteRule directive/
> mod_rewrite.
>
> Try to use
>
> RewriteRule ^/mbp/(.*) balancer://ourcluster/$1 [P]
> <Proxy balancer://myCluster>
> .....
> ProxySet stickysession=OUR_COOKIE timeout=20 nofailover=On
> </Proxy>
>
> instead.
It didn't work for me as I was running 2.2.1, but I can see from the
2.2.2 source that it's in there. It's not documented anywhere I can
see, however...?
Rgds,
Bjorn
Re: Proxy parameters to RewriteRule [P]
Posted by Robert Ionescu <ro...@googlemail.com>.
Bjørn Stabell wrote:
> RewriteRule ^/mbp/(.*) balancer://ourcluster/$1 [P] timeout=20
> nofailover=On stickysession=OUR_COOKIE
those (proxy) arguments are not part of the RewriteRule
directive/mod_rewrite.
Try to use
RewriteRule ^/mbp/(.*) balancer://ourcluster/$1 [P]
<Proxy balancer://myCluster>
.....
ProxySet stickysession=OUR_COOKIE timeout=20 nofailover=On
</Proxy>
instead.
--
Robert