Skip to content

Commit

Permalink
azure https redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdevries committed Oct 1, 2016
1 parent de72a0d commit 0ee3ea4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
</handlers>
<rewrite>
<rules>
<!-- https redirect -->
<rule name="Redirect to HTTPS">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
<add input="{URL}" pattern="/$" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="SeeOther" />
</rule>

<!-- Do not interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^server.js\/debug[\/]?" />
Expand Down

0 comments on commit 0ee3ea4

Please sign in to comment.