Enforce HTTPS on Azure Web App

<?xml version="1.0" encoding="UTF-8"?> 
<configuration>
<system.webServer>
<rewrite>
<rules>
<!-- BEGIN rule TAG FOR HTTPS REDIRECT -->
<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="true" redirectType="Permanent" />
</rule>
<!-- END rule TAG FOR HTTPS REDIRECT -->
</rules>
</rewrite>
</system.webServer>
</configuration>

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

09. inheritance and polymorphism

Key Takeaways on Redshift Architecture — from AWS Redshift Immersion Day

Practical SOLID in Golang: Open/Closed Principle

Maximizing Customer Satisfaction Through Optimized Fulfilment

Scroll animation using CSS scroll snap and react-spring

An in-depth review of using Strapi in a real-world application

Docker 101

Unstructured Data Migration “Factory” Powered by StorageX®

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arlan Nugara

Arlan Nugara

More from Medium

Pass Through Data Over IServiceProvider.CreateScope()

Git Guide for Easier Collaboration

Create well designed application with Unified Identity