1 Answer
- Newest
- Most votes
- Most comments
1
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:
- Your EC2 instance is properly configured for network connectivity (since HTTP works)
- Your web server is running and responding to HTTP requests
- Your web server is either not configured for HTTPS or is missing SSL/TLS certificates
For HTTPS to work, you need to:
- Install and configure SSL/TLS certificates on your web server
- Configure your web server to listen on port 443 (HTTPS)
- 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:
- DNS records only map hostnames to IP addresses
- The web server needs to be configured to respond to requests using those hostnames (virtual hosting)
To fix these issues:
- Set up SSL/TLS certificates (you can use Let's Encrypt for free certificates)
- Configure your web server with the proper virtual host settings for your domain names
- Verify your security groups allow traffic on ports 80 (HTTP) and 443 (HTTPS)
- 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
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 4 years ago
