jeudi 1 octobre 2015

Custom 403 Error Page for S3 Bucket

how to create routing for custom 403 error page for a s3 bucket? below have given the routing i tried. 403.html is public. all other objects in bucket is private. do i need to make bucket as well public?

<RoutingRules>
<RoutingRule>
<Condition>
  <HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
  <ReplaceKeyWith>403.html</ReplaceKeyWith>
  <HttpRedirectCode>302</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>




Aucun commentaire:

Enregistrer un commentaire