Created
March 28, 2017 18:51
-
-
Save jacobhackl/678fb32a99029cdb7d4816ed5784f10f to your computer and use it in GitHub Desktop.
Force https for iis rewrite and aws LB
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="Force Https" stopProcessing="true"> | |
<match url="health.htm" negate="true" /> | |
<conditions> | |
<add input="{HTTP_X_FORWARDED_PROTO}" pattern="https" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" /> | |
</rule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment