HAproxy health checks with authentication

HAProxy turns automatically the check as SSL if the traffic to the server is ciphered.

Maybe you should check first the HTTP status code, to see if you get a 200 or a 401.