Skip to main content
Participating Frequently
January 18, 2011
Answered

ColdFusion9 - uppercase file extension .CFM

  • January 18, 2011
  • 2 replies
  • 1153 views

Hi there,

I just recently upgrade my coldufsion 6mx to coldfusion9.  On the previous version, any file extension with cfm or CFM works. With the newer version of it doesn't work. Is there a way to resolve this problem. We have hundreds of script with uppercase (CFM) file extension.

My platform is Linux .

Thanks

    This topic has been closed for replies.
    Correct answer Dave Watts

    My guess is that you need to map .CFM to the CF server in web.xml.

    http://www.talkingtree.com/blog/index.cfm/2006/2/17/CF-Custom-File-Extensions

    That's just a guess, though. I would recommend as a long-term solution that you convert all of your files to lowercase extensions (and filenames for that matter).

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    2 replies

    12Robots
    Participating Frequently
    January 18, 2011

    Assuming you are using Apache for your web server, you may need to add .CFM to the directive that tells Apache which files to send to CF/JRUN for processing.

    It's usually at the bottom of the http.conf file.

    AddHandler jrun-handler .jsp .jws .cfm .CFM .cfml .cfc .cfr .cfswf

    I am just guessing here. Since it is on linux I would assume that directive is case-sensitive. But I could be wrong.

    Dave WattsCorrect answer
    Adobe Expert
    January 18, 2011

    My guess is that you need to map .CFM to the CF server in web.xml.

    http://www.talkingtree.com/blog/index.cfm/2006/2/17/CF-Custom-File-Extensions

    That's just a guess, though. I would recommend as a long-term solution that you convert all of your files to lowercase extensions (and filenames for that matter).

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Dave Watts, Eidolon LLC
    hellodntAuthor
    Participating Frequently
    January 18, 2011

    Dave

    Thanks for quick reply and you're right too.