Enterprise Framework

Software Solutions in the Enterprise

Azure Application Gateway with SSL Offloading - IIS Url Rewrite from HTTP to HTTPS Redirect



<rule name="HTTP To HTTPS Redirect Behind App Gtwy" stopProcessing="true"> 

<match url="^(.*)$" ignoreCase="false" /> 

<conditions logicalGrouping="MatchAny"> 

<add input="{HTTP_X_FORWARDED_PROTO}" pattern="^http$" ignoreCase="false" /> 


<action type="Redirect" url="https://{SERVER_NAME}{URL}" redirectType="Found" /> 




You can also do this HTTP to HTTPS redirect through the Application Gateway using PowerShell.


Comments are closed