Created
June 28, 2016 13:21
-
-
Save matthewrwilton/f4a7b0f3a68ec39a492c3a29aaeae17e to your computer and use it in GitHub Desktop.
Elastic Load Balancer IIS HTTP to HTTPs Redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rule name="HTTP to HTTPs Redirect" stopProcessing="true"> | |
<match url="(.*)"/> | |
<conditions> | |
<add input="{HEADER_X-Forwarded-Proto}" pattern="https" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent"/> | |
</rule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment