Is it possible to have more that one CNAME for amazon web services S3 web site?

In docs it is said that bucket name should be equal CNAME.

mysite.com and www.mysite.com as aliaces do I need to create two buckets? It's so strange.

  • 2
    mysite.com technically can't be a CNAME at all. – ceejayoz Sep 15 '12 at 14:19

You can have as many names as you want that target the same CNAME. When they say the bucket name should be the CNAME, they mean the bucket name should be what the CNAME points to. Any number of names can point to the same bucket.

Note that a domain name cannot be a CNAME, only a host name can. So www.example.com can be a CNAME to an S3 bucket but example.com cannot.

  • Thanks, a question if you don't mind: for site to available via example.com I need to name my bucket as www.example.com, right? What if I want users to reach my site via example.com? what should I do? – WHITECOLOR Sep 16 '12 at 14:14
  • The easiest way is to arrange to have your registrar do URL forwarding for you. – David Schwartz Sep 16 '12 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.