Skip to main content
Participant
October 27, 2011
Answered

CF9 + iis default documents

  • October 27, 2011
  • 1 reply
  • 3043 views

I am having a problem with CF\IIS finding the index.cfm file.  We are creating a new Server 2008 x86 box, with IIS 7.0.  We are building a parallel system to our server 2003 x86 cf 7mx, and when we go to the new site and go to our urls, it doesnt find the index.cfm file.  If you type it explicitly then there is no problem, but it needs to find the url without having to type it in.  I figured this was a problem with IIS, so i went to the Default Documents area, and made sure the index.cfm was listed, it is.   Our new servers look identical under the default documents area.  However it is still not finding it.  I dont know CF too well, and dont know if there is somewhere in CF admin that sets this.  If you need more info please let me know. 

This topic has been closed for replies.
Correct answer Owainnorth

Make sure the site's Anonymous Authentication is turned on, and is set to Application Pool Identity. Then bearing in mind the site is running under the context of the Application Pool, you need to give *that* user full permissions over the website directory. The NTFS user will be in the format "IIS Apppool\<apppoolname>".

Certainly in IIS 7.5 (so presumably in 7.0) the sites run under the context of the App pool user, *not* the IIS user.

1 reply

Inspiring
October 27, 2011

Things to check in IIS.  Note that IIS handles default documents, CF admin does not.

1. Is default documents feature enabled in IIS?

http://technet.microsoft.com/en-us/library/cc754807%28WS.10%29.aspx

2. Is there a web.config file that may be overriding the default documents configured in IIS?

http://blogs.iis.net/bills/archive/2008/03/22/how-to-add-a-default-document-with-iis7-web-config.aspx

3. Is index.cfm listed first in the default documents config?  If not another document may be being served instead.

Participant
October 28, 2011

I tried both options, the first one Default docs was enabled.  I moved the index.cfm to the top of the list, but it is still not happy. 

I then tried the second proposed solution and created my web.config files with this code,

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

   <system.webServer>

    <defaultDocument>

        <files>

            <add value="index.cfm" />

        </files>

    </defaultDocument>

   </system.webServer>

</configuration>

And i got a change in error message to an error 500. 

After reverting to my old web.config file, i am back to the starting spot

401 - Unauthorized: Access is denied due to invalid credentials.

You do not have permission to view this directory or page using the credentials that you supplied.

Could this be a permissions error?  I have checked and the IIS account has access to all the subfolders of our inetpub area. 

Owainnorth
OwainnorthCorrect answer
Inspiring
October 28, 2011

Make sure the site's Anonymous Authentication is turned on, and is set to Application Pool Identity. Then bearing in mind the site is running under the context of the Application Pool, you need to give *that* user full permissions over the website directory. The NTFS user will be in the format "IIS Apppool\<apppoolname>".

Certainly in IIS 7.5 (so presumably in 7.0) the sites run under the context of the App pool user, *not* the IIS user.