title: HAProxy path to host/path/
body: <p>Please bear with me as I am not a coder by nature.</p>
  
  <p>This is what I trying to achieve using HAproxy but after hours of checking, I am unable to make it works somehow.</p>
  
  <p>From</p>
  
  <ol>
  <li>domain.com/alpha</li>
  <li>domain.com/beta</li>
  </ol>
  
  <p>To</p>
  
  <ol>
  <li>domain.com/alpha will point to backend1/path/index.cgi</li>
  <li>domain.com/beta will point to backend2/path/index.cgi</li>
  </ol>
  
  <p>I have tried, multiple ways but come to no avail, I did read about rewrite/redirect but somehow it makes me very confuse. eg "reqrep"</p>
  
  <p>by using the alpha.domain.com points to backend1/path works as expected but I need the path inline because of certificate limitation.</p>
  
  <p>Thank you in advance and if possible explain abit how it works and whats the correct terms (example: rewrite, redirect) so that I can have clue on that and I will advance from there.</p>