HAProxy health check not working but CURL returns 200 OK
<p>I have a HAProxy health check configured with the following backend:</p>

<pre><code>backend php_servers
   http-request set-header X-Forwarded-Port %[dst_port]
   option httpchk get /health
   http-check expect status 200
   server php1 internal_ip:80 check
</code></pre>

<p>HAProxy doesn't enable the server but when using CURL I receive a 200 OK response.</p>

<pre><code>Command: curl -I internal_ip/health
Response:
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 01 Dec 2016 20:53:48 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Access-Control-Allow-Origin: api.flex-appeal.nl
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-transform
</code></pre>

<p>Why doesn't HAProxy recognize the servers as "UP"? Seems I can connect just fine.</p>