I have mine in the c:/railo-jetty/contexts
If you want it only available from certain hosts then that is what the vhosts section is for. In mine I did it for all my sites.
Then you need to add the following to your server.xml config
<Call name="addLifeCycle">
<Arg>
<New class="org.mortbay.jetty.deployer.ContextDeployer">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
<Set name="scanInterval">5</Set>
</New>
</Arg>
</Call>
Sample:global.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- ==================================================================
Configure and deploy the test web application in $(jetty.home)/webapps/test
Note. If this file did not exist or used a context path other that /test
then the default configuration of jetty.xml would discover the test
webapplication with a WebAppDeployer. By specifying a context in this
directory, additional configuration may be specified and hot deployments
detected.
===================================================================== -->
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/global</Set>
<Set name="resourceBase">C:/realistiQ/WWWContent/_Global</Set>
<Set name="welcomeFiles">
<Array type="String">
<Item>default.cfm</Item>
</Array>
</Set>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- Optional context configuration -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<Set name="extractWAR">false</Set>
<Set name="copyWebDir">false</Set> -->
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/conf/jetty-default.xml</Set>
<Set name="extraClasspath"><SystemProperty name="jetty.home" default="."/>/lib/memcached</Set>
<!-- <Set name="virtualHosts">
<Array type="String">
<Item>*.iqweb.railo-dev.realistiq.net</Item>
<Item>iqweb.railo-dev.realistiq.net</Item>
</Array>
</Set>-->
<Get name="sessionHandler">
<Get name="sessionManager">
<Set name="usingCookies" type="boolean">false</Set>
</Get>
</Get>
</Configure>
Lyle Karstensen Jr.
Chief Executive Officer (CEO)
Phone: 702.940.4200
Fax: 702.940.4201
Direct: 702.932.8200
Cell: 702.683.3666
Email: ly...@realistiq.com
Website: http://www.realistiq.com