Hello,

Have you tried moving the regrep lines to the backend sections of the
appropriate backends, ie.

reqrep ^([^\ ]*)\ /static1/(.*)      \1\ /\2
will go to the backend bk_web_82 section.

On 06/10/2013 06:45 PM, Chris Brazier wrote:
> frontend httpweb
> mode http
> option http-server-close
> bind :80
> acl p_static1 path_beg /static1/
> acl p_static2 path_beg /static2/
> reqrep ^([^\ ]*)\ /static1/(.*)      \1\ /\2
> reqrep ^([^\ ]*)\ /static2/(.*)      \1\ /\2
> use_backend bk_web_82 if p_static1
> use_backend bk_web_83 if p_static2
> default_backend bk_web_http
>
> I am finding that, the regrep works fine, but when it comes to the
> use_backend statement, it re-evaluates the acl and therefore always goes
> to the default_backend. If I comment out the regrep, I am sent to the
> correct backend, however this breaks what I am trying to achieve.

-- 
Nenad Merdanovic | PGP: 0x423edcb2 | Web: http://nimzo.info
Linkedin: http://www.linkedin.com/in/nenadmerdanovic

Reply via email to