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!

1

Context: Azure; Windows Server 2012; IIS 8

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

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

Top comments (0)