# 400 response HTTP code logged when using Haproxy 'option ssl-hello-chk'

**URL:** <https://www.ruby-forum.com/t/400-response-http-code-logged-when-using-haproxy-option-ssl-hello-chk/216667>\
**Category:** NGINX\
**Created:** [February 10, 2012, 10:01am UTC](https://www.ruby-forum.com/t/400-response-http-code-logged-when-using-haproxy-option-ssl-hello-chk/216667 "2012-02-10T10:01:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 10, 2012, 10:01am UTC](https://www.ruby-forum.com/t/400-response-http-code-logged-when-using-haproxy-option-ssl-hello-chk/216667/1 "2012-02-10T10:01:51Z")

</div>

Hello,  
We’re using haproxy to load balance SSL between two nginx servers.  
We’re using ‘option ssl-hello-chk’ for health monitoring in haproxy’s  
config. The problem is it’s flooding our logs with 400 errors every 2  
seconds. Is there a way to stop this?

Posted at Nginx Forum:

> **[400 response HTTP code logged when using Haproxy 'option ssl-hello-chk'](https://forum.nginx.org/read.php?2,222212,222212#msg-222212)**
>
> Hello, We're using haproxy to load balance SSL between two nginx servers. We're using 'option ssl-hello-chk' for health monitoring in haproxy's config. The problem is it's flooding our logs with 400 errors every 2 seconds. Is there a way to stop...

---

<div class="post-metadata">

**Author:** ![trojan2748](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@trojan2748](https://www.ruby-forum.com/u/trojan2748)\
**Post date:** [February 10, 2012, 2:49pm UTC](https://www.ruby-forum.com/t/400-response-http-code-logged-when-using-haproxy-option-ssl-hello-chk/216667/2 "2012-02-10T14:49:22Z")

</div>

Hello!

On Fri, Feb 10, 2012 at 04:01:16AM -0500, trojan2748 wrote:

> Hello,  
> We’re using haproxy to load balance SSL between two nginx servers.  
> We’re using ‘option ssl-hello-chk’ for health monitoring in haproxy’s  
> config. The problem is it’s flooding our logs with 400 errors every 2  
> seconds. Is there a way to stop this?

If you don’t want to see 400 errors, you may try something like  
this (in a default server block):

```
error_page 400 /nolog;

location = /error_400 {
    access_log off;
    return 400;
}

```

Maxim D.
