Healthcheck with redirect to HTTPS

For new /healthcheck endpoint, you wrote here the following:

Redirections are not 200 OK responses, so be careful with e.g. SSL redirections in your app that could cause your app to respond to the health check with a redirect, such as Rails’ config.force_ssl = true.

If we’re absolutely using HTTP 3xx redirect in PHP/Apache container, then how do we avoid the error and notification. Can we specify not just /healthcheck but the full path, e.g., https://mydomain.com/healthcheck ?

1 Like

thank you a lot for your post containing so useful tips! may i ask you some questions in case i will have some?

You have two options: