Azure web app redirect http to https
问题 I use Azure cloud with web app and my server side written on nodejs . When web app receive a http request I want to redirect the request to https I found the solution. I put that to my web.config file inside the rules tag <rule name="Force HTTPS" enabled="true"> <match url="(.*)" ignoreCase="false" /> <conditions> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="false" redirectType="Permanent" /> </rule> The problem