AWS Route 53 health check hostname
Published: Friday, Aug 30, 2013 Last modified: Thursday, Nov 14, 2024
Notice the Host Name with http://../
will fail:
curl -H 'Host: http://browserinabox.com/' http://117.121.241.187:80
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.4.2</center>
</body>
</html>
However:
curl -H 'Host: browserinabox.com' http://117.121.241.187:80
<h1>Hello World</h1>
Will work. Update the Host Name field to remove the http syntax and this is what a good health check looks like:
Do be aware that the Amazon Route 53 Health Check Service checks very aggressively compared to a bog standard nagios check!