title: In HAProxy, how do I redirect all to HTTPS except for certain domains?
body: <p>I have HAProxy in front of all my frontend servers working as a load balancer. It redirects all incoming requests to https: </p>
  
  <pre><code>frontend front_http
   mode http
   redirect scheme https if !{ ssl_fc }  
   maxconn 10000
   bind 0.0.0.0:80
   reqadd X-Forwarded-Proto:\ http
   default_backend back_easycreadoc
  
  frontend front_https
   mode http
   maxconn 10000
   bind 0.0.0.0:443 ssl crt /etc/haproxy/ssl.crt
   reqadd X-Forwarded-Proto:\ https
   default_backend back_easycreadoc
  </code></pre>
  
  <p>We are going to add a few domains for which we do not have a certificate (we do not own those domains, our clients own them). How do I let connections go through on port 80 without redirecting them to https, but only for these domains?</p>