Skip to main content
September 17, 2012
Question

Upgraded to CF 10 - site won't load w/out index.cfm

  • September 17, 2012
  • 2 replies
  • 4643 views

I'm having an issue with  IIS7.5 & CF 10..

If I try to load http://www.mydomain.com i get...

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

But if I key in http://www.mydomain.com/index.cfm     ...it loads!

I uninstalled and reinstalled twice - same result.

I also detached and reran the webserver Connection tool a few times.

I also double checked IIS's Default document and index.cfm is there...

Any feedback would be greatly appreciated.

    This topic has been closed for replies.

    2 replies

    Miguel-F
    Inspiring
    September 18, 2012

    In order to get IIS 7.5 to work with CF 9 without appending the default document (index.cfm) I had to install URL Rewrite on the IIS server.  Basically it just appends index.cfm to the url when it is not included.  Kind of a hack I guess but that is the only way I could get it to work.  It's free.

    Get it here:  http://www.microsoft.com/en-us/download/details.aspx?id=7435

    Here are the settings that the module appended to our web.config file:

            <rewrite>

                <rules>

                    <rule name="Insert index.cfm" stopProcessing="true">

                        <match url="^(.*)$" ignoreCase="true" negate="false" />

                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">

                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                        </conditions>

                        <action type="Rewrite" url="{R:0}/index.cfm" appendQueryString="true" />

                    </rule>

                </rules>

            </rewrite>

    Carl Von Stetten
    Legend
    September 17, 2012

    Make sure the web connector properly installed the wildcard mappings.  In IIS Manager, click on the server (not any of the sites), and then open the Handler Mappings feature.  You should have some entries like this:

    Also make sure that the "tomcat" ISAPI filter is installed.  Again, click on the server (not any of the sites), and then open the ISAPI Filters feature.  It should look something like:

    The ISAPI filter is what handles the URL's with no explicit filename/extension.

    -Carl V.

    September 17, 2012

    Carl,

    I just checked them... everything is there as you said it is supposed to be.

    I'm using this hack until I figure this out...

    index.html...

    <meta http-equiv="REFRESH" content="0;url=http://www.myDomain.com/index.cfm" >

    Carl Von Stetten
    Legend
    September 17, 2012

    Do each of your sites have a "jakarta" virtual directory created in them?