ColdFusion stopped = Apache unresponsive
August 19, 2011 Leave a Comment
In my local development set up, I sometimes don’t want to have ColdFusion running as I’ll be working on something that’s just HTML, JavaScript or using another language like PHP (don’t tell no one!). Everytime I tried this, Apache would crawl to a halt when requesting non-ColdFusion files (css, html, js, php etc…). If I started ColdFusion up, everything worked perfectly, maybe life is just better with ColdFusion always on
Delving into the Apache HTTPD configuration file, I couldn’t spot anything out of place. The “AddHandler jrun-handler” looked correct as it was only specifying ColdFusion extensions. As a guess I decided to restrict things a little further by using the “Files” tag. Setting this with a regular expression to match files ending with the required extensions did the trick.
# ---COLDFUSION---
# Load the module
<IfModule !jrun_module>
LoadModule jrun_module "C:/JRun4/lib/wsconfig/1/mod_jrun22.so"
</IfModule>
# Configure the JRun module
<IfModule jrun_module>
# Restrict to ColdFusion files only.
<Files ~ "\.(cfm|cfml|cfc|cfr|cfswf)$">
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ignoresuffixmap false
JRunConfig Serverstore "C:/JRun4/lib/wsconfig/1/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51002
AddHandler jrun-handler .cfm .cfml .cfc .cfr .cfswf
</Files>
</IfModule>
I haven’t really figured out why this was happening, but at least there’s a way to stop it. Would be useful for anyone who puts up a HTML page during maintenance where ColdFusion would need to be stopped.
Hope this helps anyone puzzled with the same issue. It’d be great if it became part of the default configuration that ColdFusion sets when hooking it up to Apache.



Found something extremely useful and want to thank me with more than just words?
Recent Comments