source: installer/resources/eepsite/contexts/base-context.xml @ 96cf1d60

Last change on this file since 96cf1d60 was 96cf1d60, checked in by zzz <zzz@…>, 7 years ago
  • Jetty: Fix eepsite and webapp cache control directives. Eepsite fix for new installs only. Fix i2psnark BasicServlet? javadoc about param prefix. (ticket #1128)
  • Property mode set to 100644
File size: 1.2 KB
Line 
1<?xml version="1.0"  encoding="ISO-8859-1"?>
2<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
3
4<!--
5Configure a custom context for the eepsite.
6
7This context contains only a ServletContextHandler with a default servlet
8to serve static html files and images.
9-->
10
11<Configure class="org.eclipse.jetty.servlet.ServletContextHandler">
12  <Set name="contextPath">/</Set>
13  <Set name="resourceBase">./eepsite/docroot/</Set>
14  <Call name="setInitParameter">
15    <Arg>org.eclipse.jetty.servlet.Default.cacheControl</Arg>
16    <Arg>max-age=3600,public</Arg>
17  </Call>
18  <Call name="setMimeTypes">
19    <Arg>
20      <New class="org.eclipse.jetty.http.MimeTypes">
21        <Call name="addMimeMapping">
22          <Arg>sud</Arg>
23          <Arg>application/zip</Arg>
24        </Call>
25        <Call name="addMimeMapping">
26          <Arg>su2</Arg>
27          <Arg>application/zip</Arg>
28        </Call>
29        <Call name="addMimeMapping">
30          <Arg>xpi2p</Arg>
31          <Arg>application/zip</Arg>
32        </Call>
33      </New>
34    </Arg>
35  </Call>
36  <Call name="addServlet">
37    <Arg>org.eclipse.jetty.servlet.DefaultServlet</Arg>
38    <Arg>/</Arg>
39  </Call>
40</Configure>
41
Note: See TracBrowser for help on using the repository browser.