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
I think this might work:
Select an IPv4address and select the "Alias" radio button.
Leave the name field blank to indicate domain.com
Then the target is www.domain.com
I'll give it a try and let you know.
Route 53 doesn't allow naked domain redirection. There are some tricky ways around it though.
More:
https://forums.aws.amazon.com/thread.jspa?threadID=55995#
For Goddady domain migrated to AWS, I took the basic configuration for domain.com and modified it a bit.
Search for somethin like this in your record set:
Name: domain.com (or www.domain.com)
Type: A - IPv4 address
Alias: No
Value: a_random_ip_address
I just added a new record set with:
Name: www.domain.com (or domain.com)
Type: A - IPv4 address
Alias: No
Value: a_random_ip_address
Remember afterwards to add www to your server (nginx, apache, etc)
Here is the solution that worked for me.
Save Record Set
By the way Amazon does not charge for Alias queries. More information here.
Amazon Route 53 doesn't charge for alias queries to CloudFront distributions, ELB load balancers, or Amazon S3 buckets.
The name abcd.com
has to have its own resource records to be resolved other than those of www.abcd.com
.
To have your domain.com (without www) on Amazon Route53 you need:
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:
[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.