Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After some more fiddling around, the best way to do this (for jetty) is to deploy a descriptor in the context directory that looks like the following...</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"&gt; &lt;!-- Configuration of a custom context. --&gt; &lt;Configure class="org.eclipse.jetty.server.handler.ContextHandler"&gt; &lt;Call class="org.eclipse.jetty.util.log.Log" name="debug"&gt; &lt;!-- The default message to show if our context breaks. --&gt; &lt;Arg&gt;Configure context.xml&lt;/Arg&gt; &lt;/Call&gt; &lt;!-- The context path is the web location of the context in relation to the server address. --&gt; &lt;Set name="contextPath"&gt;/context&lt;/Set&gt; &lt;!-- The resource base is the server directory to use for fetching files. --&gt; &lt;Set name="resourceBase"&gt;/path/to/files/on/server&lt;/Set&gt; &lt;Set name="handler"&gt; &lt;New class="org.eclipse.jetty.server.handler.ResourceHandler"&gt; &lt;Set name="directoriesListed"&gt;true&lt;/Set&gt; &lt;!-- For now we don't need any welcome files --&gt; &lt;!-- &lt;Set name="welcomeFiles"&gt; &lt;Array type="String"&gt; &lt;Item&gt;index.html&lt;/Item&gt; &lt;/Array&gt; &lt;/Set&gt; --&gt; &lt;!-- The cache time limit in seconds (ie max-age=3600 means that if the document is older than 1 hour a fresh copy will be fetched). --&gt; &lt;Set name="cacheControl"&gt;max-age=3600,public&lt;/Set&gt; &lt;/New&gt; &lt;/Set&gt; &lt;/Configure&gt; </code></pre> <p>I hope that this helps someone else!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload