title: Haproxy Appending Port to `HTTP_HOST` Header in Backend Request
body: <p>I am using <em>haproxy</em> in front of my web-server for <em>ssl</em> termination.</p>
  
  <p>I am forwarding request on port <em>81</em> if request is <em>http<strong>s</em></strong> and <em>80</em> if request is normal <em>http</em>- </p>
  
  <pre><code>backend b1_http
      mode http
      server bkend_server
  
  
  backend b1_https
      mode http
      server bkend_server:81
  </code></pre>
  
  <p>Problem is, when <em>haproxy</em> sends request to back-end, it sends <em>HTTP_HOST</em> header as <code>request.domain.com:81</code>. </p>
  
  <p>Is it possible in <em>haproxy</em> that I can send <em>https</em> request to back-end at specific port without appending the port in <em>HTTP_HOST</em> request header?</p>