Must use www for DNS entry using Amazon Route53

前端 未结 8 1365
予麋鹿
予麋鹿 2021-02-04 03:39

I administered my domain e.g www.abcd.com in Amazon Route53. Everything works perfectly, except that when user type abcd.com without www, it won\'t get resolved. Any idea? Thank

8条回答
  •  广开言路
    2021-02-04 04:04

    To have your domain.com (without www) on Amazon Route53 you need:

    • Go to your record sets;
    • Create a Record Set, type A - IPv4 Address;
    • Put your domain.com or www.domain.com on value and save.

    On my case I create a new record set for www.domain too, but with type CNAME and put my ec2 domain.

    [edit] Print of my current configuration: enter image description here

    [update] If not work for you then you need to check your apache configuration. Check the ServerName and ServerAlias to allow *.yoursite.com or just www.yoursite.com. Don't forget restart your apache after changes.

提交回复
热议问题