无法访问该站点的Amazon Ec2 [英] This site can’t be reached Amazon Ec2

查看:157
本文介绍了无法访问该站点的Amazon Ec2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Amazon EC2上创建了一个实例,然后安装了whm和cpnel。
我可以使用我的域名ex来访问cpanel。 domainname.com/2083
,但是当我转到我的域名鬃毛前。它给了domainname.com这个网站无法访问...

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...

如果网站指向不正确,我有点困惑,那么它也不应该去Cpanel但由于它能够访问cpanel,所以为什么不显示该网站。

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.

推荐答案

您应该登录到AWS EC控制台,然后转到安全组,并为HTTP通信(端口80)和HTTPS通信(端口443)创建自定义允许规则。 ),都在TCP上。默认情况下,亚马逊只允许您通过ssh访问您的亚马逊实例。如果这些端口未在安全组上列出,则您的站点都不会对公众开放。由于您可以在端口2083上访问cPanel,所以我想您已经有了一个允许在端口2083上进行访问的tcp规则。

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.

这篇关于无法访问该站点的Amazon Ec2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆