> I'm using a shared host and I used their own in-house utility 
> to set up a default page for 404 (file not found) errors in IIS.
> 
> This seems to be working for non .cfm files.
> 
> Examples that work fine:
> 
> http://domain.com/badname.htm
> http://domain.com/badname.asp
> http://domain.com/anything
>
> However, for cfm files:
>
> http://domain.com/badname.cfm
>
> A file not found error is generated by Coldfusion itself. On my 
> previous host this was all set up by one default on IIS.
>
> My new host is telling me to use cferror in the application.cfm 
> file and it has nothing to do with the server settings. Is this 
> true? Is it possible for <cferror> to recognize a file not found 
> error? Every tag I've tried so far has ignored missing file errors.

By default, when IIS receives a request that ends in ".cfm", it passes that
request to the CF server without checking to see if the file exists first,
and the IIS 404 handler won't work in that case. You can change this in the
IIS management console by right-clicking on the virtual server, going to the
"Home Directory" tab, clicking on the "Configuration" button, finding the
.cfm ISAPI extension mapping, then editing it and clicking on the "Check
that file exists" checkbox.

However, your host might not be willing to do that. You may ask them to
configure a missing template handler instead, in the CF Administrator. To
the best of my knowledge, those are your two options for handling
incorrect/nonexistent URLs.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to