Skip to main content
Participant
October 12, 2012
Question

When using the built in web server, is there a way to specify a different

  • October 12, 2012
  • 1 reply
  • 998 views

When using the built in web server, is there a way to specify a different error handler when you try to access a NON .CFM file? Right now I get the standard:

java.io.FileNotFoundException: filename.ext

Is there any setting to override this and direct the message to your own .cfm template? The missing template handler in the CF Admin work only for .cfm files.

Thx

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    October 13, 2012

    I think that it is so by design. ColdFusion is configured to process files with extensions .cfm, .cfc, .cfml, .cfr, .jsp, and so on. If the extension of the requested file is not in this list, for example filename.ext, the request will pass to the web server for handling. So, even if it is possible for you to customize the 404 handler (and it usually is), you will have to do so in the (XML) configuration files of the web server.

    Participant
    October 13, 2012

    Do you know how/where to change this using Coldfusion's built in webserver?

    BKBK
    Community Expert
    Community Expert
    October 13, 2012

    It depends on version. What's your ColdFusion version?