简体   繁体   中英

EC2 instance server not accepting HTTPS requests

I Created an EC2 instance that is running perfectly over http.but when i try to replace http to https i got this printed on the browser This site can't provide a secure connection . the security group that is associated to this instance is configured to allow requests from both HTTP and HTTPS as in the attached image:

在此处输入图像描述

You are trying to run https over a port that has been configured for HTTP.

There are multiple options to get around this:

  • Setup a proxy on your local server , such as Nginx. Setup certbot to generate your SSL and then serve this from your proxy.
  • Create an ELB in front of your server, generate a certificate in ACM and add your server as a target (running http) to the ELB. Use the load balancer for SSL termination.
  • Create a CloudFront distribution in front of your server, generate a certificate in ACM and forward traffic to your server as the origin (running http).

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