Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to redirect your domain which you are pointing towards S3 to your home pages? Like I am hosting my videos on Amazon S3 but if someone try to access the my s3.mywebsite.com it result in xml output, I want the user to redirect back to my home page (mywebsite.com)

Thanks,

share|improve this question

migrated from stackoverflow.com Jan 8 '10 at 9:34

This question came from our site for professional and enthusiast programmers.

If you put an Amazon CloudFront distribution in front of your S3 bucket, you can define a Default root object. This could be an html containing a javascript redirect to another site.

See the Amazon CloudFront Developer Guide for more information on how to set up CloudFront and set up the root object.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.