Hi, I am hoping someone can help me. I am trying to use both path_beg and regrep at the same time, but it is not working. My config is as follows:
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 If I go to: http://ip/static1/item.htm , the backend should be http://ip:82/item.htm If I go to: http://ip/static2/item.htm , the backend should be http://ip:83/item.htm If I go to: http://ip/item.htm , the backend should be http://ip/item.htm 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. If someone could help me, that would be great. Thanks, Chris Chris Brazier Solutions Architect IT DD 020 8780 6987 E [email protected]<mailto:[email protected]> W www.capsticks.com<http://www.capsticks.com> capstickssignaturetag -------------------------------------------------------------------------------- We’re supporting the Royal Hospital for Neuro-disability. Find out more about the Charity’s work at www.rhncharity.org.uk -------------------------------------------------------------------------------- HealthInvestor Awards 2013: Finalists - Legal advisors of the year (public) HealthInvestor Awards 2012: Winner - Legal advisors of the year (public) The General Practice Awards 2011: Winner - Legal team of the year Laing & Buisson - Independent Healthcare Awards 2011: Winner - Legal adviser of the year -------------------------------------------------------------------------------- If you are not the intended recipient of the email entitled "@|subject|@" then please delete the email. Disclaimer: The information contained in this communication is confidential and may be legally privileged. It is intended solely for use by the intended recipient(s) and others authorised to receive it. If you have received this message in error you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Please note that Capsticks does not accept service of proceedings by email. Capsticks Solicitors LLP is a limited liability partnership registered in England and Wales under registered number OC340360 and is authorised and regulated by the Solicitors Regulation Authority. A list of members is open to inspection at our registered office, 1 St Georges Road, St Georges East, Wimbledon, London, SW19 4DR or online at www.capsticks.com. The term partner is used to refer to a member of Capsticks Solicitors LLP or an employee or consultant with equivalent standing and qualifications. This footnote confirms this message has been scanned for viruses. Please consider the environment before printing this message.

