简体   繁体   中英

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

I need help setting up 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 .

I configured an elastic IP for my instance...

My created records:

  • A - *mydomain.com
  • A - www.mydomain.com
  • A - mydomain.com
  • NS - dns nameserves
  • SOA - aws host master

What could I be missing to avoid this redirection from the domain to the ip? Thank you very much in advance!

Route53 is a DNS service. It is only used for DNS name resolution. Route53 does not perform redirects.

Redirects are part of the HTTP protocol. Only an HTTP web server would return a redirect.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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