I have some static files sitting in an S3 bucket that I want to serve up from my
nginx server. Basically, if a user goes to
www.mywebsite.com/this/url I want to serve them up a file from the S3 bucket. What's the best way to go about doing this?
Why bring nginx into the mix? Just serve the file up to the user's browser directly out of S3.
To do this, ensure that the ACL on your S3 bucket allows read access from anonymous users. The URLs to your files there are as follows:
You can also create a CNAME record to serve S3 files from your own domain. Keep in mind that the bucket name has to be identical to the domain you'll be using (i.e.