ColdFusion 4.5 introduces a site-wide Missing Template (404 Error) error
handling feature. The error handling templates use the power of CFML to
produce customized error pages.
In the Administrator, you can specify template(s) for execution when
ColdFusion Server can't find a template or a request fails. The following
options are available:
Missing Template Handler allows you to specify the template to execute when
the ColdFusion Application Server can't find a requested template.
Site-wide Error Handler allows you to specify the template to execute any
time the ColdFusion Application Server encounters errors while processing a
request.
To set up the Missing Template Handler:
In the ColdFusion Administrator, click Settings.
The system displays the Server Settings page.
Specify the absolute path the server uses to find the missing template
handler template. For example:
[NT] C:\Inetpub\wwwroot\MissingTemplateHandler1.cfm
[UNIX] /docroot/MissingTemplateHandler1.cfm
Click Apply.
To set up the Site-wide Error Handler:
In the ColdFusion Administrator, click Settings. The system displays the
Server Settings page.
Specify the absolute path that the server uses to find the site-wide error
handling template.
[NT] C:\Inetpub\wwwroot\SiteWideErrorHandler1.cfm
[UNIX] /docroot/SitewideErrorHandler1.cfm.
Note
If you configured the IIS custom 404 error pages for .cfm files, you must
disable that option so that ColdFusion Server can process requests and
invoke the Missing Template Handler and Site-Wide Error Handler templates
when necessary.
> Anybody knows how to get the 404 error page processed by CF-server?
> Normally the web server doesn't pass back error pages to the CF server.
> That could be a nice possibility to catch broken/invalid links and so on
> ....
>
> Greetings
> Thomas
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists