Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to host my images on Amazon S3. So I created a bucket by the name images.foo.com and added a CNAME entry with the record host as images.foo.com and a record answer as s3.amazonaws.com.

There is a file in the bucket named image.jpg, under a folder named images. which I can access at images.foo.com.s3.amazonaws.com/images/image.jpg I cant access the same from images.foo.com/images/image.jpg

I also changed the record answer to s3.amazonaws.com/images.foo.com/, but that also doesnt work. What am I missing?


EDIT, AFTER THE ANSWER: Just read these pages:



share|improve this question

1 Answer 1

up vote 1 down vote accepted

Point your images.foo.com CNAME at images.foo.com.s3.amazonaws.com, the full name you want it to be an alias for. (Think 'CNAME == symlink'.)

Your first try just points to s3.amazonaws.com, which isn't what you want, and the second makes no sense, since slashes aren't valid in domain names (and also you have the parts backwards).

share|improve this answer
yeah, i just saw a few pages, that said the same. thanks for the answer :) –  theTuxRacer Jan 21 '11 at 10:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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