title: Forwarding default URL to specific URI in HAProxy
body: <p>I am new to HAProxy. I tried to configure the HAProxy to forward the URL to specific URI.
  For example, my URL is <a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a> and I want to forward it to <a href="https://www.example.com/aks/" rel="nofollow noreferrer">https://www.example.com/aks/</a></p>
  
  <p>My HAProxy configurations is :</p>
  
  <pre><code>frontend Listen443
      bind *:443 ssl crt /etc/ssl/certs/example.com-wildcard.pem
  
      acl web_url          path_beg   /aks 
      use_backend WEB      if web_url
  
      default_backend WEB
  
  # Send traffic to the web layer on port 8080
  
  backend WEB
  
  
      mode http
  
      balance roundrobin
  
      option httpclose
  
      cookie SERVERIDWEB insert indirect nocache secure
  
      option forwardfor
  
      http-request set-header X-Forwarded-Port %[dst_port]
  
      http-request add-header X-Forwarded-Proto https if { ssl_fc }
  
      server app-1 app1.example.com:8080 check cookie app1web
  
      server app-2 app2.example.com:8080 check cookie app2web
  
      server app-3 app3.example.com:8080 check cookie app3web
  </code></pre>