Apache Delivers index.cfm as Plain Text

I had to post this because I couldn’t find a quick answer when I Googled It.

I added index.cfm to my Apache config file under DirectoryIndex to kick off the file as a default. Which worked, kind of…When no page was specified the index.cfm was loaded. However, it was coming up in plain text. Not exactly what I am looking for here. I need that page to compile and render out with CF.

I had to add the CF extensions (.cfm, .cfml, etc.) to the AddHandler Jrun section of the Apache config file.

JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ssl false
JRunConfig Ignoresuffixmap false
JRunConfig Serverstore "C:/opt/coldfusion7/runtime/lib/wsconfig/1/jrunserver.store"
JRunConfig Bootstrap
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf

I am going to assume they weren’t there because when I installed CF I used the built-in server method. And later, when I configured it for Apache using the Web Server Configuration Tool, I didn’t check the box to configure it for Coldfusion Applications.

Leave a Reply

Your email address will not be published. Required fields are marked *