I have a Django application running on Elastic Beanstalk. I can visit my site no problem at example.com
. I've set up automatic https redirect, so that it always directs to https. I've set it up so you can't view the site example.elasticbeanstalk.com
domain -- if you go there you end up getting response code 400.
My auto scaling group is load balanced. My app is failing the health checks with status code 400, even though I can navigate to my site no problem with response code 200. My logs show:
***amazon IP*** (-) - - [date] "GET / HTTP/1.1" 400 26 "-""ELB-HealthChecker/2.0"
I'm guessing the error is either from
- Not allowing connection at
example.elasticbeanstalk.com
- Haivng automatic HTTP -> HTTPS redirect (although that would come up with a 302 I'd guess)
When the Health Check pings a site, is it pinging your custom domain (example.com
) or is pining the elasticbeanstalk.com
domain? What can I do to either fix this or further diagnose the error? I'd rather not allow traffic at the elasticbeanstalk.com
domain, because I don't think I can get SSL on that.