This is a continuation of my other post. In my effort to not have a bunch of domain names and host file edits; I setup my Tomcat server on EC2 the same way as the Jetty server on my laptop :). This is to get SES urls working on Tomcat in a subfolder. For http://my.ec2-server.com/site1/index.cfm/fuseaction/my.page/test/1 to function properly we do something similar to Jetty. This time we edit the /opt/railo/tomcat/conf/web.xml file. Search for /index.cfm/*.

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

The restart Railo.

/opt/railo/railo_ctl restart

And you are all set.

Related Posts | railo | ses | cfml | tomcat | install |