Skip to content

EC2 ipv4 and ipv6 https issue

0

Hello

I created EC2 instance

I got ipv4 3.90.79.230 I got ipv6 2600:1f18:2c4a:2123:4ae7:7fb:99c1:5ecd I got ec2-3-90-79-230.compute-1.amazonaws.com

They resolve as http://3.90.79.230 http://[2600:1f18:2c4a:2123:4ae7:7fb:99c1:5ecd] http://ec2-3-90-79-230.compute-1.amazonaws.com

Don't resolve as https://3.90.79.230 https://[2600:1f18:2c4a:2123:4ae7:7fb:99c1:5ecd] https://ec2-3-90-79-230.compute-1.amazonaws.com

What seems to be the problem? Anybody knows?

Also when I put them in DNS records and they do not resolve for server default web page!

asked a year ago185 views

1 Answer
1
Accepted Answer

The issue you're experiencing is likely related to your web server configuration rather than an AWS networking problem.

When you say the HTTP URLs work but HTTPS URLs don't, this suggests that:

  1. Your EC2 instance is properly configured for network connectivity (since HTTP works)
  2. Your web server is running and responding to HTTP requests
  3. Your web server is either not configured for HTTPS or is missing SSL/TLS certificates

For HTTPS to work, you need to:

  1. Install and configure SSL/TLS certificates on your web server
  2. Configure your web server to listen on port 443 (HTTPS)
  3. Ensure your security groups allow inbound traffic on port 443

Regarding DNS records not resolving for your server's default web page, this is likely because:

  1. DNS records only map hostnames to IP addresses
  2. The web server needs to be configured to respond to requests using those hostnames (virtual hosting)

To fix these issues:

  1. Set up SSL/TLS certificates (you can use Let's Encrypt for free certificates)
  2. Configure your web server with the proper virtual host settings for your domain names
  3. Verify your security groups allow traffic on ports 80 (HTTP) and 443 (HTTPS)
  4. Make sure your DNS records are correctly pointing to your EC2 instance's IP addresses
    Sources
    EC2 instance with public IP can't access internet (HTTPS 443 timeout) | AWS re:Post
    Amazon EC2 instance IP addressing - Amazon Elastic Compute Cloud

answered a year ago

AWS
EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.