Skip to content

Configure HTTPS

Jonas Van der Biest edited this page Aug 11, 2016 · 1 revision

HTTP is enabled by default. If you don't want to use HTTPS, remove the following configuration from the front end web.config file:

<system.webServer>
    <rewrite>
      <rules>
        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}/{R:1}"
              redirectType="Permanent" />
        </rule>
      </rules>
      <outboundRules>
        <rule name="Add Strict-Transport-Security when HTTPS" enabled="true">
          <match serverVariable="RESPONSE_Strict_Transport_Security"
              pattern=".*" />
          <conditions>
            <add input="{HTTPS}" pattern="on" ignoreCase="true" />
          </conditions>
          <action type="Rewrite" value="max-age=31536000" />
        </rule>
      </outboundRules>
    </rewrite>
</system.webServer>

Development

  • [Setup your environment](Run Locally)

Deployment

  • [Configure Authentication](Configure Authentication)
  • [Azure VSTS Deployment](Azure VSTS Deployment)

User Guide

Clone this wiki locally