source: other-projects/tipple-android/i-greenstone-server-files/greenstone/etc/webdefault.xml@ 26899

Last change on this file since 26899 was 26899, checked in by davidb, 11 years ago

Tipple reborn after Chris's Summer of Code 2013

  • Property svn:mime-type set to application/xml
File size: 23.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3 <!-- ===================================================================== -->
4 <!-- This file contains the default descriptor for web applications. -->
5 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
6 <!-- The intent of this descriptor is to include greenstone specific or common -->
7 <!-- configuration for all webapps. If a context has a webdefault.xml -->
8 <!-- descriptor, it is applied before the contexts own web.xml file -->
9 <!-- -->
10 <!-- A context may be assigned a default descriptor by: -->
11 <!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
12 <!-- + Passed an arg to addWebApplications -->
13 <!-- -->
14 <!-- This file is used both as the resource within the greenstone.jar (which is -->
15 <!-- used as the default if no explicit defaults descriptor is set) and it -->
16 <!-- is copied to the etc directory of the Jetty distro and explicitly -->
17 <!-- by the greenstone.xml file. -->
18 <!-- -->
19 <!-- ===================================================================== -->
20<web-app
21 xmlns="http://java.sun.com/xml/ns/javaee"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24 metadata-complete="true"
25 version="2.5"
26>
27
28 <description>
29 Default web.xml file.
30 This file is applied to a Web application before it's own WEB_INF/web.xml file
31 </description>
32
33
34 <!-- ==================================================================== -->
35 <!-- Context params to control Session Cookies -->
36 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
37 <!--
38 UNCOMMENT TO ACTIVATE <context-param> <param-name>org.eclipse.jetty.servlet.SessionDomain</param-name> <param-value>127.0.0.1</param-value> </context-param> <context-param>
39 <param-name>org.eclipse.jetty.servlet.SessionPath</param-name> <param-value>/</param-value> </context-param> <context-param> <param-name>org.eclipse.jetty.servlet.MaxAge</param-name>
40 <param-value>-1</param-value> </context-param>
41 -->
42
43 <!-- ==================================================================== -->
44 <!-- The default servlet. -->
45 <!-- This servlet, normally mapped to /, provides the handling for static -->
46 <!-- content, OPTIONS and TRACE methods for the context. -->
47 <!-- The following initParameters are supported: -->
48 <!--
49 * acceptRanges If true, range requests and responses are
50 * supported
51 *
52 * dirAllowed If true, directory listings are returned if no
53 * welcome file is found. Else 403 Forbidden.
54 *
55 * welcomeServlets If true, attempt to dispatch to welcome files
56 * that are servlets, but only after no matching static
57 * resources could be found. If false, then a welcome
58 * file must exist on disk. If "exact", then exact
59 * servlet matches are supported without an existing file.
60 * Default is true.
61 *
62 * This must be false if you want directory listings,
63 * but have index.jsp in your welcome file list.
64 *
65 * redirectWelcome If true, welcome files are redirected rather than
66 * forwarded to.
67 *
68 * gzip If set to true, then static content will be served as
69 * gzip content encoded if a matching resource is
70 * found ending with ".gz"
71 *
72 * resourceBase Set to replace the context resource base
73 *
74 * resourceCache If set, this is a context attribute name, which the servlet
75 * will use to look for a shared ResourceCache instance.
76 *
77 * relativeResourceBase
78 * Set with a pathname relative to the base of the
79 * servlet context root. Useful for only serving static content out
80 * of only specific subdirectories.
81 *
82 * aliases If True, aliases of resources are allowed (eg. symbolic
83 * links and caps variations). May bypass security constraints.
84 *
85 * maxCacheSize The maximum total size of the cache or 0 for no cache.
86 * maxCachedFileSize The maximum size of a file to cache
87 * maxCachedFiles The maximum number of files to cache
88 *
89 * useFileMappedBuffer
90 * If set to true, it will use mapped file buffer to serve static content
91 * when using NIO connector. Setting this value to false means that
92 * a direct buffer will be used instead of a mapped file buffer.
93 * By default, this is set to true.
94 *
95 * cacheControl If set, all static content will have this value set as the cache-control
96 * header.
97 -->
98
99
100 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
101 <servlet>
102 <servlet-name>default</servlet-name>
103 <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
104 <init-param>
105 <param-name>aliases</param-name>
106 <param-value>false</param-value>
107 </init-param>
108 <init-param>
109 <param-name>acceptRanges</param-name>
110 <param-value>true</param-value>
111 </init-param>
112 <init-param>
113 <param-name>dirAllowed</param-name>
114 <param-value>true</param-value>
115 </init-param>
116 <init-param>
117 <param-name>welcomeServlets</param-name>
118 <param-value>false</param-value>
119 </init-param>
120 <init-param>
121 <param-name>redirectWelcome</param-name>
122 <param-value>false</param-value>
123 </init-param>
124 <init-param>
125 <param-name>maxCacheSize</param-name>
126 <param-value>256000000</param-value>
127 </init-param>
128 <init-param>
129 <param-name>maxCachedFileSize</param-name>
130 <param-value>200000000</param-value>
131 </init-param>
132 <init-param>
133 <param-name>maxCachedFiles</param-name>
134 <param-value>2048</param-value>
135 </init-param>
136 <init-param>
137 <param-name>gzip</param-name>
138 <param-value>true</param-value>
139 </init-param>
140 <init-param>
141 <param-name>useFileMappedBuffer</param-name>
142 <param-value>true</param-value>
143 </init-param>
144 <init-param>
145 <param-name>resourceCache</param-name>
146 <param-value>resourceCache</param-value>
147 </init-param>
148 <!--
149 <init-param>
150 <param-name>cacheControl</param-name>
151 <param-value>max-age=3600,public</param-value>
152 </init-param>
153 -->
154 <load-on-startup>0</load-on-startup>
155 </servlet>
156
157 <servlet-mapping>
158 <servlet-name>default</servlet-name>
159 <url-pattern>/</url-pattern>
160 </servlet-mapping>
161
162
163 <!-- ==================================================================== -->
164 <!-- JSP Servlet -->
165 <!-- This is the jasper JSP servlet from the jakarta project -->
166 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
167 <!-- The JSP page compiler and execution servlet, which is the mechanism -->
168 <!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
169 <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
170 <!-- following initialization parameters (default values are in square -->
171 <!-- brackets): -->
172 <!-- -->
173 <!-- checkInterval If development is false and reloading is true, -->
174 <!-- background compiles are enabled. checkInterval -->
175 <!-- is the time in seconds between checks to see -->
176 <!-- if a JSP page needs to be recompiled. [300] -->
177 <!-- -->
178 <!-- compiler Which compiler Ant should use to compile JSP -->
179 <!-- pages. See the Ant documenation for more -->
180 <!-- information. [javac] -->
181 <!-- -->
182 <!-- classdebuginfo Should the class file be compiled with -->
183 <!-- debugging information? [true] -->
184 <!-- -->
185 <!-- classpath What class path should I use while compiling -->
186 <!-- generated servlets? [Created dynamically -->
187 <!-- based on the current web application] -->
188 <!-- Set to ? to make the container explicitly set -->
189 <!-- this parameter. -->
190 <!-- -->
191 <!-- development Is Jasper used in development mode (will check -->
192 <!-- for JSP modification on every access)? [true] -->
193 <!-- -->
194 <!-- enablePooling Determines whether tag handler pooling is -->
195 <!-- enabled [true] -->
196 <!-- -->
197 <!-- fork Tell Ant to fork compiles of JSP pages so that -->
198 <!-- a separate JVM is used for JSP page compiles -->
199 <!-- from the one Tomcat is running in. [true] -->
200 <!-- -->
201 <!-- ieClassId The class-id value to be sent to Internet -->
202 <!-- Explorer when using <jsp:plugin> tags. -->
203 <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
204 <!-- -->
205 <!-- javaEncoding Java file encoding to use for generating java -->
206 <!-- source files. [UTF-8] -->
207 <!-- -->
208 <!-- keepgenerated Should we keep the generated Java source code -->
209 <!-- for each page instead of deleting it? [true] -->
210 <!-- -->
211 <!-- logVerbosityLevel The level of detailed messages to be produced -->
212 <!-- by this servlet. Increasing levels cause the -->
213 <!-- generation of more messages. Valid values are -->
214 <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
215 <!-- [WARNING] -->
216 <!-- -->
217 <!-- mappedfile Should we generate static content with one -->
218 <!-- print statement per input line, to ease -->
219 <!-- debugging? [false] -->
220 <!-- -->
221 <!-- -->
222 <!-- reloading Should Jasper check for modified JSPs? [true] -->
223 <!-- -->
224 <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
225 <!-- debugging be suppressed? [false] -->
226 <!-- -->
227 <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
228 <!-- dumped to a file? [false] -->
229 <!-- False if suppressSmap is true -->
230 <!-- -->
231 <!-- scratchdir What scratch directory should we use when -->
232 <!-- compiling JSP pages? [default work directory -->
233 <!-- for the current web application] -->
234 <!-- -->
235 <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
236 <!-- -->
237 <!-- xpoweredBy Determines whether X-Powered-By response -->
238 <!-- header is added by generated servlet [false] -->
239 <!-- -->
240 <!-- If you wish to use Jikes to compile JSP pages: -->
241 <!-- Set the init parameter "compiler" to "jikes". Define -->
242 <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
243 <!-- to cause Jikes to emit error messages in a format compatible with -->
244 <!-- Jasper. -->
245 <!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
246 <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
247 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
248 <servlet
249 id="jsp"
250 >
251 <servlet-name>jsp</servlet-name>
252 <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
253 <init-param>
254 <param-name>logVerbosityLevel</param-name>
255 <param-value>DEBUG</param-value>
256 </init-param>
257 <init-param>
258 <param-name>fork</param-name>
259 <param-value>false</param-value>
260 </init-param>
261 <init-param>
262 <param-name>xpoweredBy</param-name>
263 <param-value>false</param-value>
264 </init-param>
265 <!--
266 <init-param>
267 <param-name>classpath</param-name>
268 <param-value>?</param-value>
269 </init-param>
270 -->
271 <load-on-startup>0</load-on-startup>
272 </servlet>
273
274 <servlet-mapping>
275 <servlet-name>jsp</servlet-name>
276 <url-pattern>*.jsp</url-pattern>
277 <url-pattern>*.jspf</url-pattern>
278 <url-pattern>*.jspx</url-pattern>
279 <url-pattern>*.xsp</url-pattern>
280 <url-pattern>*.JSP</url-pattern>
281 <url-pattern>*.JSPF</url-pattern>
282 <url-pattern>*.JSPX</url-pattern>
283 <url-pattern>*.XSP</url-pattern>
284 </servlet-mapping>
285
286 <!-- ==================================================================== -->
287 <!-- Dynamic Servlet Invoker. -->
288 <!-- This servlet invokes anonymous servlets that have not been defined -->
289 <!-- in the web.xml or by other means. The first element of the pathInfo -->
290 <!-- of a request passed to the envoker is treated as a servlet name for -->
291 <!-- an existing servlet, or as a class name of a new servlet. -->
292 <!-- This servlet is normally mapped to /servlet/* -->
293 <!-- This servlet support the following initParams: -->
294 <!-- -->
295 <!-- nonContextServlets If false, the invoker can only load -->
296 <!-- servlets from the contexts classloader. -->
297 <!-- This is false by default and setting this -->
298 <!-- to true may have security implications. -->
299 <!-- -->
300 <!-- verbose If true, log dynamic loads -->
301 <!-- -->
302 <!-- * All other parameters are copied to the -->
303 <!-- each dynamic servlet as init parameters -->
304 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
305 <!--
306 Uncomment for dynamic invocation <servlet> <servlet-name>invoker</servlet-name> <servlet-class>org.eclipse.jetty.servlet.Invoker</servlet-class> <init-param> <param-name>verbose</param-name>
307 <param-value>false</param-value> </init-param> <init-param> <param-name>nonContextServlets</param-name> <param-value>false</param-value> </init-param> <init-param>
308 <param-name>dynamicParam</param-name> <param-value>anyValue</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>invoker</servlet-name>
309 <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
310 -->
311
312
313
314 <!-- ==================================================================== -->
315 <session-config>
316 <session-timeout>30</session-timeout>
317 </session-config>
318
319 <!-- ==================================================================== -->
320 <!-- Default MIME mappings -->
321 <!-- The default MIME mappings are provided by the mime.properties -->
322 <!-- resource in the org.eclipse.jetty.server.jar file. Additional or modified -->
323 <!-- mappings may be specified here -->
324 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
325 <!-- UNCOMMENT TO ACTIVATE
326 <mime-mapping>
327 <extension>mysuffix</extension>
328 <mime-type>mymime/type</mime-type>
329 </mime-mapping>
330 -->
331
332 <!-- ==================================================================== -->
333 <welcome-file-list>
334 <welcome-file>index.html</welcome-file>
335 <welcome-file>index.htm</welcome-file>
336 <welcome-file>index.jsp</welcome-file>
337 </welcome-file-list>
338
339 <!-- ==================================================================== -->
340 <locale-encoding-mapping-list>
341 <locale-encoding-mapping>
342 <locale>ar</locale>
343 <encoding>ISO-8859-6</encoding>
344 </locale-encoding-mapping>
345 <locale-encoding-mapping>
346 <locale>be</locale>
347 <encoding>ISO-8859-5</encoding>
348 </locale-encoding-mapping>
349 <locale-encoding-mapping>
350 <locale>bg</locale>
351 <encoding>ISO-8859-5</encoding>
352 </locale-encoding-mapping>
353 <locale-encoding-mapping>
354 <locale>ca</locale>
355 <encoding>ISO-8859-1</encoding>
356 </locale-encoding-mapping>
357 <locale-encoding-mapping>
358 <locale>cs</locale>
359 <encoding>ISO-8859-2</encoding>
360 </locale-encoding-mapping>
361 <locale-encoding-mapping>
362 <locale>da</locale>
363 <encoding>ISO-8859-1</encoding>
364 </locale-encoding-mapping>
365 <locale-encoding-mapping>
366 <locale>de</locale>
367 <encoding>ISO-8859-1</encoding>
368 </locale-encoding-mapping>
369 <locale-encoding-mapping>
370 <locale>el</locale>
371 <encoding>ISO-8859-7</encoding>
372 </locale-encoding-mapping>
373 <locale-encoding-mapping>
374 <locale>en</locale>
375 <encoding>ISO-8859-1</encoding>
376 </locale-encoding-mapping>
377 <locale-encoding-mapping>
378 <locale>es</locale>
379 <encoding>ISO-8859-1</encoding>
380 </locale-encoding-mapping>
381 <locale-encoding-mapping>
382 <locale>et</locale>
383 <encoding>ISO-8859-1</encoding>
384 </locale-encoding-mapping>
385 <locale-encoding-mapping>
386 <locale>fi</locale>
387 <encoding>ISO-8859-1</encoding>
388 </locale-encoding-mapping>
389 <locale-encoding-mapping>
390 <locale>fr</locale>
391 <encoding>ISO-8859-1</encoding>
392 </locale-encoding-mapping>
393 <locale-encoding-mapping>
394 <locale>hr</locale>
395 <encoding>ISO-8859-2</encoding>
396 </locale-encoding-mapping>
397 <locale-encoding-mapping>
398 <locale>hu</locale>
399 <encoding>ISO-8859-2</encoding>
400 </locale-encoding-mapping>
401 <locale-encoding-mapping>
402 <locale>is</locale>
403 <encoding>ISO-8859-1</encoding>
404 </locale-encoding-mapping>
405 <locale-encoding-mapping>
406 <locale>it</locale>
407 <encoding>ISO-8859-1</encoding>
408 </locale-encoding-mapping>
409 <locale-encoding-mapping>
410 <locale>iw</locale>
411 <encoding>ISO-8859-8</encoding>
412 </locale-encoding-mapping>
413 <locale-encoding-mapping>
414 <locale>ja</locale>
415 <encoding>Shift_JIS</encoding>
416 </locale-encoding-mapping>
417 <locale-encoding-mapping>
418 <locale>ko</locale>
419 <encoding>EUC-KR</encoding>
420 </locale-encoding-mapping>
421 <locale-encoding-mapping>
422 <locale>lt</locale>
423 <encoding>ISO-8859-2</encoding>
424 </locale-encoding-mapping>
425 <locale-encoding-mapping>
426 <locale>lv</locale>
427 <encoding>ISO-8859-2</encoding>
428 </locale-encoding-mapping>
429 <locale-encoding-mapping>
430 <locale>mk</locale>
431 <encoding>ISO-8859-5</encoding>
432 </locale-encoding-mapping>
433 <locale-encoding-mapping>
434 <locale>nl</locale>
435 <encoding>ISO-8859-1</encoding>
436 </locale-encoding-mapping>
437 <locale-encoding-mapping>
438 <locale>no</locale>
439 <encoding>ISO-8859-1</encoding>
440 </locale-encoding-mapping>
441 <locale-encoding-mapping>
442 <locale>pl</locale>
443 <encoding>ISO-8859-2</encoding>
444 </locale-encoding-mapping>
445 <locale-encoding-mapping>
446 <locale>pt</locale>
447 <encoding>ISO-8859-1</encoding>
448 </locale-encoding-mapping>
449 <locale-encoding-mapping>
450 <locale>ro</locale>
451 <encoding>ISO-8859-2</encoding>
452 </locale-encoding-mapping>
453 <locale-encoding-mapping>
454 <locale>ru</locale>
455 <encoding>ISO-8859-5</encoding>
456 </locale-encoding-mapping>
457 <locale-encoding-mapping>
458 <locale>sh</locale>
459 <encoding>ISO-8859-5</encoding>
460 </locale-encoding-mapping>
461 <locale-encoding-mapping>
462 <locale>sk</locale>
463 <encoding>ISO-8859-2</encoding>
464 </locale-encoding-mapping>
465 <locale-encoding-mapping>
466 <locale>sl</locale>
467 <encoding>ISO-8859-2</encoding>
468 </locale-encoding-mapping>
469 <locale-encoding-mapping>
470 <locale>sq</locale>
471 <encoding>ISO-8859-2</encoding>
472 </locale-encoding-mapping>
473 <locale-encoding-mapping>
474 <locale>sr</locale>
475 <encoding>ISO-8859-5</encoding>
476 </locale-encoding-mapping>
477 <locale-encoding-mapping>
478 <locale>sv</locale>
479 <encoding>ISO-8859-1</encoding>
480 </locale-encoding-mapping>
481 <locale-encoding-mapping>
482 <locale>tr</locale>
483 <encoding>ISO-8859-9</encoding>
484 </locale-encoding-mapping>
485 <locale-encoding-mapping>
486 <locale>uk</locale>
487 <encoding>ISO-8859-5</encoding>
488 </locale-encoding-mapping>
489 <locale-encoding-mapping>
490 <locale>zh</locale>
491 <encoding>GB2312</encoding>
492 </locale-encoding-mapping>
493 <locale-encoding-mapping>
494 <locale>zh_TW</locale>
495 <encoding>Big5</encoding>
496 </locale-encoding-mapping>
497 </locale-encoding-mapping-list>
498
499 <security-constraint>
500 <web-resource-collection>
501 <web-resource-name>Disable TRACE</web-resource-name>
502 <url-pattern>/</url-pattern>
503 <http-method>TRACE</http-method>
504 </web-resource-collection>
505 <auth-constraint/>
506 </security-constraint>
507
508</web-app>
509
Note: See TracBrowser for help on using the repository browser.