My final nginx/Railo connector


I have setup a few servers the last few days and I have finally honed my nginx/Railo configuration down to the point where it is about as good as it is going to get. The actual server configuration is minimal; set the host name and the log file location and you are done. Everything Railo needs to run is set in an include file that can easily be added to any site.

As a quick example, here is an example host file:


The host configuration is straight forward. Next we move on to the Railo connector:

The Railo connector is pretty much a rehash of my other posts, with a few differences. Every thing is now contained in the include instead of just the main connector. This handles the main rewrite block (supporting SES URLs out of the box), locks down the Railo admin so that it cannot be accessed directly as well as hiding the admin in /secret/location/(web|server).cfm.

Also I have added the extra proxy parameters to the Railo admin proxy. This should keep you from banging your head on the desk for a few hours wondering why you Railo context seems to be pointed somewhere else since the host headers are not getting proxied to Railo. It was a bit of an oversight in the original posts.

Advertisements

About Robert Zehnder

Web application developer specializing in ColdFusion/Railo and Open Source development.

Posted on March 4, 2013, in General and tagged , . Bookmark the permalink. 10 Comments.

  1. I keep getting a 403 forbidden when I go to the root without the index.cfm and it returns a 403 forbidden error message. Any ideas what could be causing it?

  2. Great work! Robert.
    It was so helpful for me. thanx. 😉

  3. If i go to http://localhost/index.cfm I get: 502 bad gateway
    if I go to http://localhost:8888/index.cfm it bypasses nginx and resolves correctly

  1. Pingback: Nginx/Railo connector for SSL-enabled sites | KISDigital Blog

  2. Pingback: Nginx connector for Railo/ACF part deux | KISDigital Blog

  3. Pingback: Improved connector for Nginx proxy to Railo | KISDigital Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: