简体   繁体   中英

How to make a secure connection to ec2 instance on aws

I have managed to connect my ec2 instance to my domain with route 53. However im now having issues making the connection secure. I have tried to follow step by step instructions found on stack exchange however am still having issues and wonder if anyone can help me.

I created a secure certificate with the amazon certificate manager and connected this to a load manager which is linked to my ec2 instance. 在此处输入图像描述

I then used the DNS name on the load balancer and added this to my route 53 configuration. 在此处输入图像描述 Something I cant quite understand is when I test the record set on route 53 I get the IP 3.129.2.237 returned (which still loads the ec2 instance), not the ip4v value found on the ec2 instance 18.217.221.40.

Ive then taken the name server values and put them into my dynadot (host) name server settings.

I have restarted my gunicorn server that im using on the ec2 instance. It is running on port 9090, in the Nginx settings (/etc/nginx/sites-available/default) I set proxy_pass to http://0.0.0.0:9090 .

The site runs when doing a http:// request ( http://www.advancedmatchedbetting.com ) but not when a https request occurs enter link description here .

If anyone has any idea where im going wrong it would be most apreciated. If it's of any help, it is a Django app running react as a frontend.

Edit: launch wizard protocol:

在此处输入图像描述

Dynadot settings: 在此处输入图像描述

Amazon Certificate Manager: 在此处输入图像描述

New Dynadot Settings: 在此处输入图像描述

Based on the comments.

The issue was that the incorrect records set for the domain. They were set to the IP of the instance, rather then the url of the CLB.

The solution was to change the records to the correct values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM