title: HAProxy load balancing with tomcat SSL
body: <p>I have 2 tomcat7 instances (on 2 separate VMs) with SSL, and I want to use haproxy as a load balancer for them.
  I'm unsure exactly how to do this, but I tried installing haproxy 1.5 with open ssl (and compiled with <code>USE_OPENSSL=yes</code>) and used a similar configuration to here: <a href="http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/" rel="nofollow">http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/</a></p>
  
  <pre><code>frontend https_frontend  
    bind *:443 ssl crt /etc/haproxy/keystore
    mode http
    option httpclose
    option forwardfor
    reqadd X-Forwarded-Proto:\ https
    default_backend web_server
  
  backend web_server
    mode http
    balance roundrobin
    cookie SERVERID insert indirect nocache
    server s1 vm1:8443 check cookie s1
    server s2 vm2:8443  check cookie s2
  </code></pre>
  
  <p>I get the following error when starting haproxy:</p>
  
  <pre><code>'bind' only supports the 'transparent', 'defer-accept', 'name', 'id', 'mss' and 'interface' options.
  </code></pre>
  
  <p>Does anyone have any suggestions/ideas?
  Thanks! :)</p>