1

my instance in amazon S3 works perfectly with its redirection rules to folders and files that don't exist on the bucket (their path converts to #arguments):

this

mediocafe.com.s3-website-us-west-2.amazonaws.com/redirect/thispath/hopeitworks

redirects me to the correct web

but if i try to access via my cloud front, it gives me a Key not found message.

what should I configure to allow cloud front access S3 files that don't exist and that trigger redirection rules?

2

Redirect works, the problem was that i was redirecting 403 errors, not 404

  • If your bucket is set up to allow "Everyone" the "List" privilege, then the redirect rules need to be against 404 instead of 403... but if "Everyone" has the "List" privilege, that also allows everyone(!?) to list all the files in your bucket(!?)... so perhaps the better option is to tighten up the bucket permissions and go back to 403 on the rules. – Michael - sqlbot Sep 26 '16 at 12:30
  • 1
    Thanks Michael, very useful comment, perfecting what already works is what makes te difference – Lau Llobet Sep 28 '16 at 12:54
  • You have stated my philosophy quite elegantly. – Michael - sqlbot Sep 28 '16 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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