Difference between revisions of "SES Urls"

From Hostek.com Wiki
Jump to: navigation, search
(With Railo)
(With Railo)
Line 19: Line 19:
 
</servlet-mapping>
 
</servlet-mapping>
 
</pre>
 
</pre>
 +
If this servlet mapping is not added, then you may receive 404 errors from tomcat when visiting pages on the site.

Revision as of 00:16, 3 December 2012

With Railo

Q: I want to add a servelet mapping to Railo, example /A_B/index.cfm/* is this possible?

A: Yes, you can add a servlet mapping directly to the /WEB-INF/web.xml file in your domains public root directory. See the proper formatting below; a restart of Railo/Tomcat is NOT needed, this change should take place right away.

  <servlet-mapping>
    <servlet-name>GlobalCFMLServlet</servlet-name>
    <url-pattern>/1_0/index.cfm/*</url-pattern>
  </servlet-mapping>

Also, if you use Mura and wish to leave the site name in the URL, you'll have to add a custom servlet mapping too. In this case, the site name is "default", and the mapping would look like this:

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

If this servlet mapping is not added, then you may receive 404 errors from tomcat when visiting pages on the site.