user461697
user461697

Reputation:

Elastic Beanstalk SSL not working with hosts file mapping

I have an Elastic Beanstalk environment with an SSL certificate that works if I visit the *.elasticbeanstalk.com URL (with a warning from by browser). For testing purposes I've mapped the IP of the instance to the domain in my hosts file before I change nameservers over. However when I try the actual URL with https:// I got ERR_CONNECTION_REFUSED from Chrome - http:// works fine though. I've flushed the DNS cache and I know DNS shouldn't care about application layer protocols - so I'm pretty stumped here. Any ideas?

Upvotes: 0

Views: 327

Answers (1)

Tal
Tal

Reputation: 7997

HTTPS is disabled by default on new elastic beanstalk environments.
If it's a single server environment, you'd need to setup SSL yourself (documentation here). If it's a load balanced one, simply enable the HTTPS protocol in the ElasticBeanstalk web console (Configuration => Network Tier => Load Balancing => Load Balancer)

Upvotes: 0

Related Questions