The balancer monitor does not respond to headers with http codes 403

Hello

I configured the balancer to test the health of two hosts whose state LB shows as health.

In order to check on 1 host, stop nginx, the site returns a response with code 403 to the requests, but LB continues to show health status and only if manually disconnect the pool with host 1 the traffic switches to host 2. Why does not LB define headers with code 403?

Thanks.

What did you define in the field for codes the health checker should expect?

Can it be that your origin returns a redirect before showing a 403, and that the health check doesn’t follow redirects?

The field with codes is set to “2xx” (I attach an image).

Redirection is not used.

Also, the LB monitor does not respond to codes 404.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.