September 26, 2012

Adding a mail server to a Railo instance

We turn off all GUI based administration consoles in our production environments, this includes Railo’s admin area. If you need to configure your Railo instance to include an SMTP server, you can add a line in WEB-INF/railo/railo-web.xml.cfm Open up that file (probably as sudo), look for the tag (which is empty by default) and insert the following: <server port="25" smtp="127.0.0.1" /> The “smtp” attribute should be the IP address of your SMTP server. ... Read more

July 1, 2011

FarCry Tip - Enable cfc's in your Railo ProxyPassMatch

I ran into an issue today while working on a FarCry project, basically when I opened up the “Related Content” popup from the WYSIWYG editor it was blank. Nothing. Not the usual tabs for Images, File, Flash etc. The Railo logs were empty but Apache was throwing a strange error which I hadn’t seen before: “Couldn’t initialize from remote server, JRun server(s) probably down.”. Funny as I’m not even using JRun! ... Read more

May 31, 2011

Mura - overriding dspCrumblistLinks

Like most CMS solutions out there, Mura CMS gives you some cool hooks to override core functionality. See the developer guides for more information. I’ve created a repository on github to store any customisations or extensions that could be cherry picked for use in any Mura app. First up was a super simple one for breadcrumbs. By default, Mura will put an “a href” around the last item in the crumb list. ... Read more

May 29, 2011

FarCry to Mura - migrating data from FarCry to Mura CMS

For years here at Learnosity we’ve been using FarCry for most of our CMS requirements (yes, I know that FarCry, or rather farcrycms, is a lot more than just a CMS). For one reason or another we decided it was time to look at some of the other options for content management in the ColdFusion sphere, Mura CMS was a likely candidate for evalutation. We had a small-ish site that was already running in FarCry 6+ which we wanted to port to Mura so we could really get a feel for how things worked in Mura-land. ... Read more

May 27, 2010

CFML issue on Railo with the accelerate cache tag

We’ve been using Brandon Purcell’s excellent accelerate custom cache tag for a few projects. I had an issue today while testing a new app which is about to go live. It seemed that whatever I did nothing would be cached. Upon investigation it seemed that the caching worked fine on Adobe ColdFusion but not on Railo. A quick look at the codebase brought me to this line: <cfif IsDefined("application.accelerator.#scriptName#.#primarykey#.#secondaryKey#") Basically this was always returning false, even when I knew the key was in the application scope. ... Read more

March 3, 2010

Detecting https across Railo and ColdFusion Server

Previously I had a way of detecting whether page requests were being made via ssl but today I came across a scenario where this doesn’t work. Let me explain… Right now we’re looking at developing across different ColdFusion engines, “ColdFusion” of course but also “Railo”. One of the applications we had detected whether a request was being made securely (https) and if it wasn’t we turned off session management for security reasons. ... Read more

August 16, 2008

2 cool things about Railo

Session management: If an application/session scope is defined with the tag or the application.cfc, in Railo it will not automatically exist. Only when the scope is used for the first time it will be created. If the scope is not used, it won’t be created either. This is really good news. Many people have blogged in the past about issues with “bots” hitting ColdFusion sites and spawning a multitude of sessions which (depending on the application of course) can cause memory and/or performance problems. ... Read more

August 16, 2008

FarCry 5 running on Railo 3 (Windows)

The CFML market is hotting up with Railo going open source (in version 3.1) and joining forces with JBoss for an end of 2008 release! With that in mind I figured it was time to check out Railo with the latest version of FarCry. My environment: Windows XP Railo 3.0.0.003 FarCry 5.0.0 (although 5.0.2 is out, the latest distro from the site offers only 5.0.0) FarCry 5.0.2 MySQL 5 I’m using the “express” version of Railo which bundles with Jetty Application Server, so no need for any apache configurations as everything runs off port 8888. ... Read more

© Michael Sharman 2017