title: HAProxy Path Matching
body: <p>I am trying to forward all request to frontend with url <code>/api/*</code> to a specific backend. I used the following:</p>
  
  <pre><code>frontend fr
  # Other relevant settings
  acl is_controller_req path_sub -i controller
  acl is_controller_api path -i -m beg /api
  
  use_backend controller_service if is_controller_req
  use_backend controller_service if is_controller_api
  </code></pre>
  
  <p>The first acl works for all routes under the domain <code>http://localhost:4200/&lt;PATH&gt;</code> where each <code>&lt;PATH&gt;</code> has the controller keyword in them. For the second one, I get <code>503 Service Unavailable</code>. How do I match these paths and setup my <code>acl</code> accordingly?</p>