iis application rerouting requires url to end in /

10 views
Skip to first unread message

Peter Lai

unread,
Sep 30, 2014, 5:59:25 PM9/30/14
to scmma...@googlegroups.com
I am trying to proxy scm manager behind IIS and ARR3. scm manager is running on localhost:8085. http://localhost:8085 works fine.

Here is my web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundRule1" stopProcessing="false">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://localhost:8085/scm/{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

This is located in my IIS server's web directory 'scm', so it is accessed using: https://myserver/scm

If I use https://myserver/scm, I get some content but all of the images and CSS do not load (as if the server wants to load them from / instead of redirecting the requests to Jetty. If I use https://myserver/scm/ (with the trailing /), then everything loads fine.

In scm manager's folder, conf\server-config.xml, <set name="forwarded">true</set> is set.

In .scm configuration, the base URL has been set to https://myserver/scm and the "force base url" button is unchecked.
setting Base URL to https://myserver/scm/ doesn't alter this behavior.
scmbroke.PNG
Reply all
Reply to author
Forward
0 new messages