Score:0

How to proxy pass a Gunicorn App using MS IIS over https?

in flag

I have a Gunicorn app in a Linux server behind a DMZ that I need to proxy pass with MS IIS.

The following diagram explains the configuration

enter image description here

The problem I experiencing is with the transformation URLs from http to https. For example the source code of https://myapp.domain.org shows this:

<link rel="shortcut icon" href="http://myapp.domain.org/mag_branding/MAG_ico.png" />

This is the first time I had to proxy pass a Gunicorn App over MS IIS. Over Linux with Apache I just need to add:

ProxyRequests Off
ProxyPreserveHost On
RequestHeader set X-Forwarded-Port 443
RequestHeader set X-Forwarded-Scheme https
RequestHeader set X-Forwarded-For 443
RequestHeader set X-Forwarded-Proto https

But how and where can I setup such headers in MS IIS?

Lex Li avatar
vn flag
https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing You can use IIS ARR to set up similar rules.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.