简体   繁体   English

ROUTE 53 域重定向到实例的 ip 而不是保留域 url

[英]ROUTE 53 domain redirect to ip of instance inestead to keep the domain url

I need help setting up ROUTE 53,我需要帮助设置 ROUTE 53,

I created a hosted zone, pointed the dns and everything works normally So when I access www.mydomain.com it loads the site but redirected to the ip of my instance eg http://xx.xxxx.xxxx.xx .我创建了一个托管区域,指向 dns 并且一切正常所以当我访问www.mydomain.com时它会加载该站点但重定向到我的实例的 ip 例如http://xx.xxxx.xxxx.xx

I configured an elastic IP for my instance...我为我的实例配置了一个弹性 IP ...

My created records:我创建的记录:

  • A - *mydomain.com A - *我的域名.com
  • A - www.mydomain.com A - www.mydomain.com
  • A - mydomain.com A - 我的域名.com
  • NS - dns nameserves NS - dns 域名服务器
  • SOA - aws host master SOA--aws 主机主机

What could I be missing to avoid this redirection from the domain to the ip?为了避免从域重定向到 ip,我可能缺少什么? Thank you very much in advance!非常感谢您!

Route53 is a DNS service. Route53 是一个 DNS 服务。 It is only used for DNS name resolution.它仅用于 DNS 名称解析。 Route53 does not perform redirects. Route53 不执行重定向。

Redirects are part of the HTTP protocol.重定向是 HTTP 协议的一部分。 Only an HTTP web server would return a redirect.只有 HTTP web 服务器会返回重定向。

Whatever software you have running on your instance has not been configured to be aware of the domain name it is serving, so it is defaulting to the IP address of the server.您在实例上运行的任何软件都没有配置为知道它所服务的域名,因此它默认为服务器的 IP 地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM