loading...

Need help with IIS UrlRewriting (again)

bugmagnet profile image Bruce Axtens ・1 min read

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

        <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"

Discussion

markdown guide