News for hackers. Stuff that matters.
Re:Root Domain Website Hosting for Amazon S3 by xingquan on Friday December 28, 2012 @04:23PM (#4979636)
Hello,

Have you tried setting a redirection rule on your bucket so that when the 500 error occurs, S3 will automatically retry the request? You can set a redirection rule in the S3 console, and I think the following rule might work:

<RoutingRules> <RoutingRule> <Condition> <HttpErrorCodeReturnedEquals>500</HttpErrorCodeReturnedEquals> </Condition> <Redirect> <HttpRedirectCode>301</HttpRedirectCode> </Redirect> </RoutingRule> </RoutingRules>

This will redirect all 500s back to the same location, effectively re-trying the request. This should cover the random 500 case but I'm not sure that it will work 100% of the time though.

Re:Root Domain Website Hosting for Amazon S3 by koenbok on Saturday December 29, 2012 @12:35AM (#4981255)
This sounds like a possible solution. Have you tried or tested this?
Re:Root Domain Website Hosting for Amazon S3 by nicome on Saturday December 29, 2012 @05:32AM (#4981709)
I'm interested by this solution too. I will try to take a look and test it over the weekend. I think that this solution can only be an improvement though.