Ok, I think I’ve figured out how to configure it most of the way. Here are my notes:
Setup
After unzipping the download, create a link to it
mklink /j jetty jetty-distribution-9.4.14.v20181114
Next, create both the base and start directory; without the start.d, all configs will got to a start.ini
mkdir jetty\lucee-base\start.d
cd jetty\lucee-base
You can list available modules java -jar ../start.jar --list-modules
(more information at
https://www.eclipse.org/jetty/documentation/current/startup-modules.html)
These are the modules we’ll be using
java -jar ../start.jar --add-to-start=deploy,jsp,ext,http,https,logging-logback
Theoretically, there is some dependencies added, but I’m not sure which.
Under the lucee-base/lib/ext
directory, add the lucee.jar
Configuration
Each web app context can be bound to a separate virtual host. To do so, create an xml file with at least the following:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="resourceBase">
<SystemProperty name="jetty.base" default="." />/webapps/target-directory
</Set>
<Set name="extractWAR">true</Set>
<Set name="copyWebDir">false</Set>
<Set name="virtualHosts">
<Array type="String">
<Item>host-name</Item>
</Array>
</Set>
</Configure>
The target-directory
will become the webroot. Create WEB-INF
directory under it and place the web.xml with the lucee servlet config. The server context will write the necessary files upon restart.
You should now be able to access http://host-name:8080/ for your cfm files, and http://host-name:8080/lucee/admin/web.cfm for the instance’s cf settings.