> Can you explain this in greater detail?

As you know, requests come through IIS.  For a simple page such as 
whatever.htm, it looks on the hard drive for whatever.htm, and if it's 
found, it is read and sent to the visitor.  If it's not found, IIS goes 
to the error control settings to see what it should do in the case of a 
404 and displays its 404 error, redirect, or whatever it's set to do.

In the case of anything with an extension handler or ISAPI filter (such 
as ColdFusion), by default IIS just passes the request to the filter and 
waits for a response.  In this case, the response it gets is output from 
ColdFusion as an error saying the file doesn't exist, and that gets 
passed back to the visitor.

In the ISAPI and extension handler settings in IIS, there is an option 
called "verify that file exists" which can be turned on.  When enabled, 
IIS will go check the hard drive for the file just like it does for 
"unhandled" file types such as basic HTML.  If the file exists, it will 
hand the request over to the filter normally.  If it doesn't exist, it 
will ignore the filter and go straight to the 404 error settings and 
handle it internally, so ColdFusion never sees the request.  Essentially 
it allows missing .cfm requests to be handled the same as any other 
missing file.

You need access to the IIS settings console or the metabase to make this 
change.  The only downside is that IIS will start looking on the hard 
drive for the file upon each request, and will increase disk I/O, though 
the difference is negligible.

In the IIS GUI, the setting is under the site properties, Home Directory 
tab, either of the edit buttons, then "verify that file exists."


-Justin Scott, http://www.tlson.com/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313137
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to