Can we run a script on the webservers that returns HTTP 200 if the server is properly configured, and HTTP 5xx if something is wrong, so the loadbalancer will take it out?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This comment has been deleted
This is written in the official tutorial:
So I would guess that’s kind of a no, but you can run a cronjob script every minute that will close your port 80 or remove the server from the LB group or something else. It’s not perfect, but maybe you should suggest it on UserVoice: https://digitalocean.uservoice.com/forums/136585-digitalocean/