I'm hosting my rails app with heroku and managing my DNS with ZerigoDNS (the free heroku addon). I use Amazon S3 to store all of my assets.
I have a public folder in my S3 bucket called newsletter
.
I'd like http://mydomain.com/newsletter
to simply act as an alias to https://my-bucket.s3.amazonaws.com/newsletter
.
How would I go about doing that?
Thanks!
Edit: preferably, I'd like the URL to not redirect but instead just read from the S3 folder. So I'd basically just set up an alias for https://my-bucket.s3.amazonaws.com/newsletter
. Is there a way to do that using routes.rb or some gem?