Difference between revisions of "SES Urls"
(→With Railo) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
'''Q: I want to add a servelet mapping to Railo, example /A_B/index.cfm/* is this possible?''' | '''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 | + | '''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. | ||
<pre> | <pre> | ||
<servlet-mapping> | <servlet-mapping> | ||
Line 12: | Line 13: | ||
</pre> | </pre> | ||
− | 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: | + | 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: |
<pre> | <pre> | ||
<servlet-mapping> | <servlet-mapping> | ||
Line 20: | Line 21: | ||
</pre> | </pre> | ||
If this servlet mapping is not added, then you may receive 404 errors from tomcat when visiting pages on the site. | 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. | ||
+ | |||
+ | [[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?
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.