Change the default JRun error message in ColdFusion

If your ColdFusion server (actually the JRun underneath CF) throws an error your stuck with a rather ugly and uninformative page telling people that you have an error. This is not what you want. Of course, having a JRun error is not what you want but if you have to have one, you'de rather people see an error message that at least looks nice.

This can be done rather easily using a setting in the jrun.ini file located in: C:/CFusionMX7/runtime/lib/wsconfig/1

On apache, the file is the mod_jrun.so located here: /opt/coldfusionmx7/runtime/lib/wsconfig/1

In these files you'll see a line formatted like this (in both CFMX 6 and 7) #errorurl=

All you have to do is remove the pound sign and replace the bracketed text with an url you would like displayed in case of error: errorurl=http://localhost/rebooting.htm

End result is a nice page to display when CF is just starting up or has crashed.

Comments
Steven Erat's Gravatar There's a technote with details for all webserver configs:

http://www.macromedia.com/go/tn_19300
# Posted By Steven Erat | 11/8/05 3:45 PM
Michael Dinowitz's Gravatar Thanks. The links I had from emails all had the wrong directory listed (it used lib as the root forgetting the runtime directory). The Apache docs in the link you gave says to modify the httpd.conf while other docs say to modify the mod_jrun.so. Which would be correct?
# Posted By Michael Dinowitz | 11/9/05 2:02 AM
Michael Dinowitz's Gravatar Thanks to Dave Carabetta, the answer is httpd.conf. The documentation that said mod_jrun.so is in error.

http://www.houseoffusion.com/cf_lists/messages.cfm...
# Posted By Michael Dinowitz | 11/9/05 1:30 PM
Ethan Cane's Gravatar I have found the file to be named: jrun_iis6_wildcard.ini

and not jrun.ini...

Just so you know.

Ethan Cane
Web Developer
# Posted By Ethan Cane | 11/9/05 3:35 PM
Chris Bowyer's Gravatar Just wondering if there is a way change the default JRun error message if you don't have access to Administrator e.g. If you are just a user on a shared server. I could also not find this file in wsconfig of my developer edition. Any enlightenment would be greatly appreciated!
# Posted By Chris Bowyer | 10/22/06 6:34 PM
Chris Bowyer's Gravatar Just wondering if there is a way change the default JRun error message if you don't have access to Administrator e.g. If you are just a user on a shared server. I could also not find this file in wsconfig of my developer edition. Any enlightenment would be greatly appreciated!
# Posted By Chris Bowyer | 10/22/06 6:36 PM
Chris Bowyer's Gravatar Just wondering if there is a way change the default JRun error message if you don't have access to Administrator e.g. If you are just a user on a shared server. I could also not find this file in wsconfig of my developer edition. Any enlightenment would be greatly appreciated!
# Posted By Chris Bowyer | 10/22/06 6:44 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9. Contact Blog Owner
House of Fusion | ColdFusion Jobs @ House of Fusion | Fusion Authority