title: Haproxy - forward request to S3 hosted site
body: <p>I have extremely low knowledge on haproxy. Was testing out a configuration where</p>
  
  <p>S3 hosted website (route 53 alias) - content.mydomain.com<br>
  URL landing on haproxy - www.mydomain.com/getfiles/</p>
  
  <p>Is it possible to redirect reroute www.mydomain.com/getfiles/ to content.mydomain.com (s3 hosted website).</p>
  
  <p>I was able to redirect it to another application running on the same server with the below mentioned config</p>
  
  <pre><code>  acl display-s3-content path_beg /getfiles/
    use_backend my-content if display-s3-content
  
  backend my-content   
    reqrep ^([^\ ]*)\ (.*) \1\ /path/\2   
    server test www.mycomain.com:1936
  </code></pre>
  
  <p>but when i try to redirect it to s3 hosted site, it does not work. Below is the backend for the not working config</p>
  
  <pre><code>  reqrep ^([^\ ]*)\ (.*) \1\ /path/\2
    server test1 content.mydomain.com
  </code></pre>
  
  <p>Thanks!</p>