> When someone requests foo.jsp (or ANY other *.jsp) and it
> doesn't exist, I'd love to change that message - better
> yet, I'd love to redirect it to a single template that
> will respond to all server 404's (JRun and IIS).

In your IIS settings, there should be an option for the ISAPI filter or
extension mapping called "Verify that file exists."  If you enable that, IIS
will verify that the file being called on the URL exists on disk before
passing the request to the filter.  If the file doesn't exist, it will use
the 404 error rule defined within IIS instead of passing to the filter to
process.  You can specify a URL such as /404.cfm and IIS will launch that
with the original URL requested on the query string so that it can be
processed accordingly.  (This is based on IIS6, not sure if the same applies
to 7)

I believe there is also a missing template handler setting in the ColdFusion
administrator for ColdFusion to handle missing files directly if desired.
It's been a long time since I've had a need to use that.


-Justin



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331826
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to