Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CF9 + iis default documents

New Here ,
Oct 27, 2011 Oct 27, 2011

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. 

2.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Oct 28, 2011 Oct 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.

Translate
Enthusiast ,
Oct 27, 2011 Oct 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.asp...

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2011 Oct 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 28, 2011 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2011 Oct 28, 2011

You are awesome Owain.  I switched the Anonymouse Authentication type to app pool, and everything worked.  Not only did everything work that i was trying to fix, it also fixed two problems the programmer was trying to figure out, why her pictures and styles werent working. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 28, 2011 Oct 28, 2011

Spot the guy who had to write a script to set up IIS7 websites recently

I like the sound of this Anonymouse as well, any more information on that? I'm imagining some kind of ninja rodent.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 28, 2011 Oct 28, 2011

steak1986@hotmail.com wrote:

You are awesome Owain.

I like the sound of this Anonymouse as well, any more information on that? I'm imagining some kind of ninja rodent.

And this is coming from someone whose name is "Awesome Owain".

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 28, 2011 Oct 28, 2011

And this is coming from someone whose name is "Awesome Owain".

Yes, but that is a name that clearly doesn't need any explanation.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 28, 2011 Oct 28, 2011
LATEST

Owain North wrote:

And this is coming from someone whose name is "Awesome Owain".

Yes, but that is a name that clearly doesn't need any explanation.

[chuckle]

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources