Skip to content

Instantly share code, notes, and snippets.

@mwkorver
Last active March 25, 2016 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwkorver/a9e7f038417e37ff4fb0 to your computer and use it in GitHub Desktop.
Save mwkorver/a9e7f038417e37ff4fb0 to your computer and use it in GitHub Desktop.
S3 redirect for TMS
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>maptilerworkshop.elasticbeanstalk.com</HostName>
<ReplaceKeyPrefixWith>?tile=</ReplaceKeyPrefixWith>
<HttpRedirectCode>303</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment