Skip to content

Commit 0ee3ea4

Browse files
committed
azure https redirect
1 parent de72a0d commit 0ee3ea4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

web.config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
</handlers>
1717
<rewrite>
1818
<rules>
19+
<!-- https redirect -->
20+
<rule name="Redirect to HTTPS">
21+
<match url="(.*)" />
22+
<conditions>
23+
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
24+
<add input="{URL}" pattern="/$" negate="true" />
25+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
26+
</conditions>
27+
<action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="SeeOther" />
28+
</rule>
29+
1930
<!-- Do not interfere with requests for node-inspector debugging -->
2031
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
2132
<match url="^server.js\/debug[\/]?" />

0 commit comments

Comments
 (0)