Difference between revisions of "SES Urls"

From Hostek.com Wiki
Jump to: navigation, search
m
 
Line 24: Line 24:
 
'''A''':  
 
'''A''':  
 
You have the option of adding the servlet mapping on a per-site basis as shown above, or you can add it at the server level. If you wish to add it at the server level so the mapping applies to all sites, just add the mapping to Tomcat's "conf/web.xml" file.
 
You have the option of adding the servlet mapping on a per-site basis as shown above, or you can add it at the server level. If you wish to add it at the server level so the mapping applies to all sites, just add the mapping to Tomcat's "conf/web.xml" file.
 +
 +
[[Category:Railo]]
 +
[[Category:VPS]]

Latest revision as of 21:20, 22 January 2013

With Railo

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

Shared Hosting

A: Yes, you can add a servlet mapping directly to the /WEB-INF/web.xml file in your domain's 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.

VPS Hosting

A: You have the option of adding the servlet mapping on a per-site basis as shown above, or you can add it at the server level. If you wish to add it at the server level so the mapping applies to all sites, just add the mapping to Tomcat's "conf/web.xml" file.