Railo default document management

Railo Add comments

By default your installation of Railo on Tomcat may not handle default documents as expected, by this I mean when you go www.yourdomain.com it should load index.cfm by default but doesn't even though you have this set as a default document on the web server.  You may also find that you are having issues mixing CFML and PHP or ASP together on the same site.

To solve this you need to edit your uriworkermap.properties file and add the following line

/=ajp13

This will process all requests through Tomcat so will handle the default documents.

But what if you have a site that has CFML and say PHP or ASP pages and the default document is not CFML ? This is the situation I found myself with and the non CFML pages would not load the solution is in the tomcat documentation.

Add the following to the above file

!/*.yourdomain.com/=ajp13

This will do the complete opposite of the previous statement, it tells tomcat not to process ALL FILES for the specified domain, so only files with a .cfm extension will be processed

You will also need to exclude other non cfm extensions from being processed like this

!/*.asp=ajp13
!/*.aspx=ajp13
!/*.php=ajp13
!/*.shtml=ajp13

Which tells tomcat not to process these file extensions.

So here is what my entire uriworkermap.properties file looks like, which allows me to run CFML, ASP, PHP and SHTML pages on the same site, but bluethunder.co (which is mostly SHTML and PHP) will not process the default document through Tomcat but will still run CFM pages.

!/*.asp=ajp13
!/*.aspx=ajp13
!/*.php=ajp13
!/*.shtml=ajp13
/*.cfm=ajp13
/*.cfc=ajp13
/*.cfml=ajp13
/*.cfchart=ajp13
/*.cfm/*=ajp13
/*.cfml/*=ajp13
/*.cfc/*=ajp13
/*.jsp=ajp13
/*.do=ajp13
/flex2gateway/*=ajp13
/flashservices/gateway/*=ajp13
/messagebroker/*=ajp13
/=ajp13
!/*.bluethunder.co/=ajp13

2 responses to “Railo default document management”

  1. AJ Mercer Says:
    Have you tried out the new Railo Server Installer?
    http://www.getrailo.org/index.cfm/download/
    Installs Tomcat 7 and does all the Railo 'wiring' for you.

    You can also use the installer to upgrade your server - Tomcat and Railo.

    Super slick for the guys at Viveotech
  2. web document management Says:
    FileVista is a web document manager for storing, managing and sharing files online through your web browser.It is a web based software which you install on your web server to fulfill web document management requirements of your company or organization.This web document manager allows your users to upload, download and organize any type of file with an intuitive user interface.gleamtech.com

Leave a Reply

Leave this field empty

Powered by Mango Blog. Design and Icons by N.Design Studio