Mobile app version of vmapp.org
Login or Join
Dunderdale272

: Mapping an amazon server to a domain name registered with name.com I have an amazon S3 web server and a domain name registered in name.com (the name is sam-experiments.com). I am trying to

@Dunderdale272

Posted in: #Amazon #Dns

I have an amazon S3 web server and a domain name registered in name.com (the name is sam-experiments.com). I am trying to have a static page hosted on the amazon web server to be displayed on www.sam-experiments.com
On the web server side, my bucket name is 'www.sam-experiments.com', and it links to here: www.sam-experiments.com.s3-website-eu-west-1.amazonaws.com/
On name.com, I added a new record with the followin characteristics:


Record Type: CNAME
Record Host: sam-experiments.com Record Answer: sam-experiments.com.s3.amazonaws.com. (as specified in the documentation here: docs.amazonwebservices.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingCustomURLs)
TTL: 300


However, nothing gets displayed on sam-experiments.com, and I am not able to find what I am doing wrong.

I really would appreciate some tip.
Thanks!

Note: I already posted this question in stackoverflow, but didnt get any answer, so I thought posting here may be more appropriate.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

2 Comments

Sorted by latest first Latest Oldest Best

 

@Lee4591628

I finally managed to map my website to my server. I will quikcly explain how, maybe it will be useful for someone who has the same problem.

I just went to "URL forwarding" on name.com and put my amazon link: www.sam-experiments.com.s3-website-eu-west-1.amazonaws.com/
For some reason, I have control of sam-experiments.com but not sam-experiments.com, which confused me for a while...

10% popularity Vote Up Vote Down


 

@Mendez628

In the Amazon configuration for your web server, are you able to tell Amazon that the name of your web server is sam-experiments.com? You need to be able to do that somehow so that when Amazon receives an HTTP request with Host: sam-experiments.com in it, it knows what to do with it.

This is very similar to how Akamai works. Akamai also uses DNS CNAMES just as you have described. However, in the Akamai configuration for the web site you have to tell Akamai the name of the digital property which is the host name that you are using for the web site.

From the Amazon documentation you referenced:


Create a bucket that matches the host name.

In this example, the host and bucket names are images.johnsmith.net.

Note

Your bucket name must exactly match the host name.


Does your bucket name in Amazon exactly match the host name?

Is your bucket name all lower case as they recommend? See the limitations note from the documentation shown below.


Limitations

Because DNS names are case insensitive, only lower-case buckets are
addressable using the virtual hosting method. For more information,
see Bucket Restrictions and Limitations.


Also, looking at the documentation in more detail, why did you use sam-experiments.com.s3.amazonaws.com instead of sam-experiments.com.s3-website-eu-west-1.amazonaws.com in the CNAME?

Going to just www.sam-experiments.com.s3.amazonaws.com returns:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>1A02939C75C5CDC8</RequestId>
<HostId>
3XAYwSXkWhkvXFG4gNyCYyBpb9g2kMv1L4Zv9UJCSX/L21peb19KbaSMhfqb/hrW
</HostId>
</Error>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme