Strict transport security - HxGN SDx - Update 38 - Installation & Upgrade

Infrastructure Planning and Deployment for HxGN SDx

English (United States)
Search by Category
Installation & Upgrade
SmartPlant Foundation / SDx Version

Best practice for an application server exposed to the internet dictates that the server should be configured to communicate over HTTPS only and that any caller attempting to connect over HTTP is redirected to HTTPS.

To configure this behavior, the following section should be added to the application server and authorization server’s web.config files.

<?xml version="1.0" encoding="UTF-8"?>
<rule name="HTTP to HTTPs redirect" stopProcessing="true">
<match url="(.*)"/>
<add input="{HTTPS}" pattern="off" ignoreCase="True"/>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent"/>
<rule name="Add Strict-Transport-Security when HTTPS" enabled="True">
<match serverVariable="RESPONSE_Strict_Transport_Security" pattern=".*"/>
<add input="{HTTPS}" pattern="on" ignoreCase="true"/>
<action type="Rewrite" value="max-age=31536000"/>

The IIS rewrite module needs to be enabled in order for this configuration to be effective.