IIS 7 Server Log In Issue

1
I am having an issue configuring my IIS 7 to redirect my website to the local host. My local host is currently running fine and I have full capabilities (Located at localhost:8080) when I launch the website (located at guidopm:82) I am redirected to the proper login page. However, when I try to log in I keep getting an error that says server not found. I think my issue may be with redirection but I do not quite understand the rules, etc about how this is supposed to work (kind of new to this sorry). Does anyone have any advice as to why this is happening and if I need to set up redirection rules or what?
asked
1 answers
1

Make sure the ManagedFusion.Rewriter.dll is in the bin directory under your project/web folder. You should not need the pbd file. Also verify the ManagedFusion.Rewriter file is in your web directory (same directory as the web.config).

Below are the contents of a test web.config file and ManagedFusion.Rewriter file we have running in a test environment. This is an IIS7.5 application with an application pool running the 2.0.50727 .Net Framework Verify you are running your application on port 8080 or update the web.config and url rewriter to have the correct port.

Web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
    <section name="managedFusion.rewriter" type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup" />
</configSections>
<managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter" />
<system.webServer>

     <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
            <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter" />
        </modules>
        <handlers>
            <add name="RewriterProxyHandler" preCondition="integratedMode" verb="*" path="RewriterProxy.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

        </handlers>
        <staticContent>
            <mimeMap fileExtension=".mxf" mimeType="text/xml" />
        </staticContent>
        <httpProtocol>
            <customHeaders>
                <add name="X-Forwarded-Scheme" value="http" />
            </customHeaders>
        </httpProtocol>
        <!--<rewrite>
            <rewriteMaps>
                <rewriteMap name="RewriteXAS">
                    <add key="/xas/" value=":8080/" />
                </rewriteMap>
            </rewriteMaps>
        </rewrite>-->

</system.webServer>
<location path="xas">
    <system.webServer>
        <httpErrors errorMode="Detailed" />
    </system.webServer>
</location>
    <system.web>
        <identity impersonate="true" />
    </system.web>
</configuration>

ManagedFusion.Rewriter:

RewriteEngine On

RewriteCond %{QUERY_STRING} ^(.+)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^ui
RewriteCond $1 !^forms
RewriteCond $1 !^mxclientsystem
RewriteCond $1 !^widgets
RewriteRule ^/?(.*) http://localhost:8080/$1?%1 [P,L,R]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^ui
RewriteCond $1 !^forms
RewriteCond $1 !^mxclientsystem
RewriteCond $1 !^widgets
RewriteRule ^/?(.*) http://localhost:8080/$1 [P,R]
answered