The question is very simple. I want to allow http on my azure webapp, but by default it redirects http to https even if "https only" is off. There is a way to keep http protocol at azure webaps? All the information I find on google is the opposite of what I want.
You have two options here, the one I prefer is applying a certificate to your app. That's free using azure app service. You can learn more on this arcticle :
The second one is applying a redirect rule within you web.config, redirecting any https to http.
<rule name="Redirect to HTTP" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^ON$" />
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.