Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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?
3. Is index.cfm listed first in the default documents config? If not another document may be being served instead.
Copy link to clipboard
Copied
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
Could this be a permissions error? I have checked and the IIS account has access to all the subfolders of our inetpub area.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
And this is coming from someone whose name is "Awesome Owain".
Yes, but that is a name that clearly doesn't need any explanation.
Copy link to clipboard
Copied
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