JamesMatson
JamesMatson

Reputation: 2922

How to get HTTPS to work on a website - specifically an Elastic Beanstalk site in AWS

I am really struggling to get my basic website (literally just a template without any changes, just running ASP.NET) to work with HTTPS. I am using an Elastic Beanstalk environment to host the site, and the site EC2 virtual machine is behind a load balancer (classic).

I have followed the guide here And believe I have everything configured correctly, however when I browse to https://www.playground.cloudy-skies.org/ or even the http:// version, I get a HTTP ERROR 503.

I have created an SSL certificate using AWS certificate manager: enter image description here

I have the load balancer in AWS configured like so: enter image description here

As per the website documentation, my domain name is pointing to the elastic beanstalk instance, not the load balancer. I've checked the AWS official doco and it says to do pretty much this. Where am I going wrong? if I browse the site with Fiddler active I get:

enter image description here

Please help? I'm a software developer more than I am a network guy, so I'm doing my best here but I'm struggling and have yet to successfully create a site that uses HTTPS.

Upvotes: 0

Views: 61

Answers (1)

karan sharma
karan sharma

Reputation: 483

First thing if you are using Beanstalk your Route 53 will be pointing to your Beanstalk Url only. You can change even force it your Loadblancer also but it doesn't make any change.

As your HTTPS (Port 443) is not working, just check the Security Group of EC2 instance and ELB (Elastic Load Balancer). Sometimes it happens Security Group block your Port.

So in Your Inbound Rules, (for both ELB and EC2) 443 port should be included

enter image description here

enter image description here

Upvotes: 1

Related Questions