redirect to https

This commit is contained in:
Tommy Parnell
2017-09-29 20:53:51 -04:00
parent df88773fde
commit 70bfafb445

View File

@@ -21,7 +21,20 @@
<!-- Make sure error responses are left untouched -->
<httpErrors existingResponse="PassThrough" />
<rewrite>
<rules>
<rule name="Redirect to HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_X_FORWARDED_PROTO}" pattern="https" negate="true" />
<add input="{HTTP_HOST}" pattern="tparnellresume.azurewebsites.net" negate="true" />
<add input="{HTTP_HOST}" pattern="localhost" negate="true" />
<add input="{REMOTE_HOST}" pattern="localhost" negate="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".m4v" mimeType="video/m4v" />