重启 Amazon EC2 实例后,无法通过域名访问实例。

huangapple go评论47阅读模式
英文:

After rebooting amazon ec2 instance, can't access instance with domain

问题

我首先重新启动了实例。然后,当我尝试使用域名访问实例时,无法访问。

我可以使用弹性IP地址访问(whm和cpanel都可以使用IP地址访问),但是使用域名时,我无法访问。

帮助我解决这个问题。

英文:

I have first reboot the instance. After that when I tried to access instance with domain name, it's not accessible.

I can access with elastic ipaddress (whm and cpanel both i can access with ip address) but with domain name, i am not able to access.

Help me to resolve it.

答案1

得分: 0

可以ping该域名来检查是否返回服务器的实际IP地址吗?

ping domain.com

如果返回了正确的IP,请告诉我,否则DNS可能出了问题。或者很可能是您的DNS服务器宕机或配置错误。如果您正在使用Cloudflare或任何其他第三方DNS提供商,则需要关闭代理绕过域名,以便直接通过域名访问服务器。

英文:

Can you ping the domain to check if it returns the actual IP address of the server?

ping domain.com

Let me know if it returns the correct IP, otherwise there must be something wrong with the DNS. Or most probably your DNS server is down or misconfigured entries. If you're using Cloudflare or any other 3rd party DNS provider, then you need to turn of proxy bypass for the domain in order to access the server directly through domain name.

答案2

得分: 0

后来发现我使用cpanel创建了一个带有公共IP地址的实例,而不是使用弹性IP地址...

基本上只涉及IP地址的问题。

之后,我使用cpanel Linux创建了一个新实例,并使用弹性IP地址安装了cpanel,在这种情况下,重启后这个问题再次没有发生。顺便说一句,问题已解决。

英文:

Later on found that I have created instance with cpanel with public ip address instead of using elastic ip address...

Basically it issue regarding ip address only.

After that I have created new instance with cpanel Linux and installed cpanel with elastic ip address, in that case after rebooting this issue didn't happen again. Btw it solved.

huangapple
  • 本文由 发表于 2023年2月16日 02:46:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75464210.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定