title: CentOS 6.5 - haproxy fatal error
body: <p>Getting error in CentOS 6.5, HA-Proxy version 1.4.24 2013/06/17
  Please advise how to make it work? i need to do HTTPS to localhost:8888 , which is failing.</p>
  
  <pre><code># service haproxy start
  [ALERT] 238/084310 (24365) : parsing [/etc/haproxy/haproxy.cfg:18] : timeout 'tunnel': must be 'client', 'server', 'connect', 'check', 'queue', 'http-keep-alive', 'http-request' or 'tarpit'
  [ALERT] 238/084310 (24365) : parsing [/etc/haproxy/haproxy.cfg:22] : 'redirect' expects 'code', 'prefix', 'location', 'set-cookie', 'clear-cookie', 'drop-query' or 'append-slash' (was 'scheme').
  [ALERT] 238/084310 (24365) : parsing [/etc/haproxy/haproxy.cfg:24] : 'bind' only supports the 'transparent', 'defer-accept', 'name', 'id', 'mss' and 'interface' options.
  [ALERT] 238/084310 (24365) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
  [ALERT] 238/084310 (24365) : Fatal errors found in configuration.
  Errors in configuration file, check with haproxy check.
  </code></pre>
  
  <p>My config is:</p>
  
  <pre><code>global
      log 127.0.0.1 local0 debug
      maxconn 8000
      user    haproxy
      group   haproxy
  defaults
      log     global
      option  httplog
      option  dontlognull
      option  http-server-close
      option  redispatch
      retries 3
      mode    http
      maxconn         5000
      timeout connect  5s
      timeout client  30s
      timeout server  30s
      timeout tunnel  12h
  frontend www
      bind     :80
      option   forwardfor
      redirect scheme https if !{ ssl_fc }
  frontend lb
      bind   :443 ssl crt /etc/haproxy/sslkeys/cert.pem ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-RC4-SHA:ECDHE-RSA-RC4-SHA:ECDH-ECDSA-RC4-SHA:ECDH-RSA-RC4-SHA:ECDHE-RSA-AES256-SHA:RC4-SHA
      option forwardfor
      reqadd X-Forwarded-Proto:\ https
      default_backend  api
      acl is_websocket hdr(Upgrade)  -i WebSocket
      acl is_websocket hdr_beg(Host) -i ws
      acl is_api       hdr_beg(Host) -i api
      use_backend ws  if is_websocket
      use_backend api if is_api
  backend api
      balance roundrobin
      server  service 127.0.0.1:5001 weight 1 maxconn 2500 check
  backend ws
      balance roundrobin
      server  service 127.0.0.1:5001 weight 1 maxconn 2500 check
  </code></pre>
  
  <p>EDIT: upgraded to <a href="http://silverdire.com/2014/03/19/haproxy-1-5-dev22-rpm-repo/" rel="nofollow">http://silverdire.com/2014/03/19/haproxy-1-5-dev22-rpm-repo/</a>
  but still giving error</p>
  
  <pre><code># service haproxy start
  [ALERT] 238/085833 (25096) : parsing [/etc/haproxy/haproxy.cfg:22] : error detected in frontend 'www' while parsing redirect rule : error in condition: unknown fetch method 'ssl_fc' in ACL expression 'ssl_fc'.
  [ALERT] 238/085833 (25096) : parsing [/etc/haproxy/haproxy.cfg:24] : 'bind :9999' unknown keyword 'ssl'. Registered keywords :
      [ TCP] defer-accept
      [ TCP] interface &lt;arg&gt;
      [ TCP] mss &lt;arg&gt;
      [ TCP] transparent
      [ TCP] v4v6
      [ TCP] v6only
      [STAT] level &lt;arg&gt;
      [UNIX] gid &lt;arg&gt;
      [UNIX] group &lt;arg&gt;
      [UNIX] mode &lt;arg&gt;
      [UNIX] uid &lt;arg&gt;
      [UNIX] user &lt;arg&gt;
      [ ALL] accept-proxy
      [ ALL] backlog &lt;arg&gt;
      [ ALL] id &lt;arg&gt;
      [ ALL] maxconn &lt;arg&gt;
      [ ALL] name &lt;arg&gt;
      [ ALL] nice &lt;arg&gt;
  [ALERT] 238/085833 (25096) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
  [ALERT] 238/085833 (25096) : Fatal errors found in configuration.
  Errors found in configuration file, check it with 'haproxy check'.
  </code></pre>