This site can’t be reached Amazon Ec2

Taha Ibrahim picture Taha Ibrahim · Nov 15, 2016 · Viewed 21.3k times · Source

I have created an instance on Amazon EC2 then installed whm and cpnel. I am able to access cpanel just by using my domain name ex. domainname.com/2083 but when i go to my domain mane ex. domainname.com it gives This site can’t be reached...

I am a bit confused if site wasn't pointed properly then it should not go to Cpanel either but since its able to access cpanel then why its not displaying the website.

I have already rechecked name servers and host name.

Answer

Bogdan Stoica picture Bogdan Stoica · Jan 30, 2017

You should login to your AWS EC console then go to the Security Groups and create a custom allow rule for the HTTP traffic (port 80) and also HTTPS traffic (port 443), both on TCP. By default, amazon only allows you ssh access to your amazon instance. If those ports are not listed on the Security Groups, then none of your sites will be accesibile to the public. Since you are able to access cPanel on port 2083 I suppose you already have a tcp rule to permit access on port 2083.