Just installed Railo but SES URL's not working Print

  • 3

To fix this issue please see the below article by Kevan Stannard

 

http://domain/index.cfm/wiki/dashboard

 

This causes an error such as:

HTTP Status 404 - /index.cfm//wiki/dashboard
type Status report
message /index.cfm//wiki/Dashboard
description The requested resource (/index.cfm//wiki/dashboard) is not available.
Apache Tomcat/6.0.20

 

The default install of Railo I am using enables the handling of URLs such as:

*.cfm
*.cfml
*.cfc

But we need to also set up a handler for:

/index.cfm/*

These mappings are handled in the tomcat web.xml file.

The default settings are:

 
 
<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>*.cfmurl-pattern>
servlet-mapping>
 
<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>*.cfmlurl-pattern>
servlet-mapping>
 
<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>*.cfcurl-pattern>
servlet-mapping>

We need to add one more that reads:

<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>/index.cfm/*url-pattern>
servlet-mapping>

After restarting Railo, the SES URLs should start working.

This technique should hopefully work for any applications that use this URL technique, including Mango Blog, which will require a few extra similar mappings.

This entry is based on a comment by Tony Garcia on a Railo entry by Sean Corfield:

View source: http://blog.stannard.net.au/2010/04/17/ses-urls-in-railo-with-tomcat/


Was this answer helpful?

« Back