redirect to https
This commit is contained in:
15
web.config
15
web.config
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user