- Newest
- Most votes
- Most comments
Hello Lenny,
I ran some tests on your domain and from there I think there is a mistake in opening up the ports on the security group. I see that you are using the EC2 public IP to host your site and when I try to reach the site, my request is timing out which leads me to believe that there port is not accepting connections from the internet.
curl -v -i https://rps.game
* Trying 3.137.217.78:443...
* connect to 3.137.217.78 port 443 failed: Connection timed out
* Failed to connect to rps.game port 443 after 134404 ms: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to rps.game port 443 after 134404 ms: Connection timed out
Please review the security groups associated with your instance and try again. I do not think it is an SSL configuration issue at this time. I would have received a different error if that was the case.
I also checked if your port is open or not and discovered that it is closed.
THANK YOU EVERYONE NOT JUST MUKUL FOR GIVING ME YOUR TIME....DEEPLY GRATEFUL.
PROBLEM: It seems like my website should have been connected here: ec2-3-133-160-47.us-east-2.compute.amazonaws.com However, it was connected here instead: ec2-3-137-217-78.us-east-2.compute.amazonaws.com...(DON'T KNOW HOW THAT HAPPENED BUT IT DID)
SOLUTION: Grabbed the ipv4 addresses from the instance settings like Mukul suggested and updated the A records. And hey ho, the propagation was instantaneous somehow and we back online baby.
I can definitely help you troubleshoot this issue as an AWS Solution Architect. Here are some steps to investigate why your domain shows "This Site Can't Be Reached" even though the instance and server are running:
1. Double-Check DNS Propagation:
You mentioned renewing your DNS, but DNS changes can take up to 24 hours to fully propagate globally. Wait at least 24 hours after making any DNS record updates to see if the issue resolves.
2. Verify Security Group Rules:
Ensure your security group allows inbound traffic on port 80 (HTTP) or 443 (HTTPS) for your website. You can check and modify security groups in the AWS Management Console.
3. Investigate Nginx Logs:
Nginx logs might reveal clues about the issue. You can access logs by connecting to your instance via SSH and looking in the location specified in your Nginx configuration file (usually /var/log/nginx/access.log and /var/log/nginx/error.log). Look for errors related to requests or unexpected behavior.
4. Check Instance Health:
Go to the EC2 service in the AWS Management Console and look at the health status of your instance. Any errors or warnings could indicate a problem.
-
Consider using a tool like
dig
ornslookup
to verify your DNS records are resolving correctly from your location. -
These are general troubleshooting steps. The specific solution depends on your configuration.
I have updated my question with all the information you requested, still no luck :(
Relevant content
- asked a year ago
- asked 3 months ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
Hi lenny,
Could you share your domain name?
Start with an online DNS checker to confirm that IP address resulted from DNS resolve is the IP of the instance(s)? Continue with same test (or ping) from your local laptop/network/browser/console/cmd. If yes (IP resulted by pinging your domain is EC2 instance PUBLIC IP address), continue with firewall rules: anyone should be able to access ports 80 and 443 on TCP protocol. If this still not solves your problems.. try AWS console (add a SSH key to your EC2 instance, connect to it and check httpd/apache/nginx service status and logs. systemctl status service_name tail -f /var/log/service_name/*