Custom Amazon S3 URLs

Quick tip for those considering Amazon S3: use a CNAME to make it look like your server is hosting the files.  For instance:

http://media.rssmeme.com/screen.css

That file is actually served by Amazon.  I have a CNAME set (media.rssmeme.com CNAME media.rssmeme.com.s3.amazonaws.com).  If someone comes out with a new product (or I decide to host the files myself) someday then it will be easy to change without changing URLs.

Note: your Amazon S3 bucket name must exactly match your hostname.  So I needed to have a bucket media.rssmeme.com first; I couldn’t use my old rssmeme bucket.