Some of you may have a solution for this, and I need to hear it. Basically, you have a website, a lot of categories ( games, blog etc ).
The idea would be to use Amazon CDN for images, flv's, javascript js, and css. What's the best way to implement Amazon CloudFront to make this work?
Would I sync only the images etc, keeping the structure intact? I've been using
RewriteEngine On
RewriteCond %{REQUEST_URI} .*jpg$|.*gif$|.*png$ [NC]
RewriteRule (.*) http://www.google.com/$1 [R]
in order to server images, but also keeping the relative paths. So
domain.com/images/something/smth.jpg
would redirect to
etc.cf.net/images/something/smth.jpg
The idea is to make no changes to the website. I'm not sure if to not kick s3fs directly to the image directories, and have everything upload to the respective mount points ( is the speed fast enough ? )