DEV Community 👩‍💻👨‍💻

Bruce Axtens
Bruce Axtens

Posted on

Need help with IIS UrlRewriting (again)

One (hopefully final) issue with reverse proxying. IIS guru? Please read!


Context: Azure; Windows Server 2012; IIS 8

First up, here's the (redacted) web.config for reference

                <rule name="ReverseProxyInboundRule1" stopProcessing="false">
                    <match url="(.*)" />
                    <action type="Rewrite" url="{R:1}" logRewrittenUrl="true" />
                        <set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />
                        <set name="HTTP_ACCEPT_ENCODING" value="" />
                <rule name="Capture Http Origin Header" enabled="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll"

Top comments (0)

🌚 Browsing with dark mode makes you a better developer by a factor of exactly 40.

It's a scientific fact.