source: gs3-extensions/solr/trunk/src/etc/webdefault.xml@ 24502

Last change on this file since 24502 was 24502, checked in by davidb, 10 years ago

Relocation of files to make solr.solr.home more natural. Moving this file was a mistake, as it is part of Jetty not Solr. Reverting back to 'etc' directory

File size: 23.8 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 jetty 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 jetty.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 jetty.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 <description>
28 Default web.xml file.
29 This file is applied to a Web application before it's own WEB_INF/web.xml file
30 </description>
31
32
33 <!-- ==================================================================== -->
34 <!-- Context params to control Session Cookies -->
35 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
36 <!-- UNCOMMENT TO ACTIVATE
37 <context-param>
38 <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>
39 <param-value>127.0.0.1</param-value>
40 </context-param>
41
42 <context-param>
43 <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
44 <param-value>/</param-value>
45 </context-param>
46
47 <context-param>
48 <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>
49 <param-value>-1</param-value>
50 </context-param>
51 -->
52
53 <context-param>
54 <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
55 <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar</param-value>
56 </context-param>
57
58
59
60 <!-- ==================================================================== -->
61 <!-- The default servlet. -->
62 <!-- This servlet, normally mapped to /, provides the handling for static -->
63 <!-- content, OPTIONS and TRACE methods for the context. -->
64 <!-- The following initParameters are supported: -->
65 <!-- -->
66 <!-- acceptRanges If true, range requests and responses are -->
67 <!-- supported -->
68 <!-- -->
69 <!-- dirAllowed If true, directory listings are returned if no -->
70 <!-- welcome file is found. Else 403 Forbidden. -->
71 <!-- -->
72 <!-- welcomeServlets If true, attempt to dispatch to welcome files -->
73 <!-- that are servlets, if no matching static -->
74 <!-- resources can be found. -->
75 <!-- -->
76 <!-- redirectWelcome If true, redirect welcome file requests -->
77 <!-- else use request dispatcher forwards -->
78 <!-- -->
79 <!-- gzip If set to true, then static content will be served-->
80 <!-- as gzip content encoded if a matching resource is -->
81 <!-- found ending with ".gz" -->
82 <!-- -->
83 <!-- resoureBase Can be set to replace the context resource base -->
84 <!-- -->
85 <!-- relativeResourceBase -->
86 <!-- Set with a pathname relative to the base of the -->
87 <!-- servlet context root. Useful for only serving -->
88 <!-- static content from only specific subdirectories. -->
89 <!-- -->
90 <!-- useFileMappedBuffer -->
91 <!-- If set to true (the default), a memory mapped -->
92 <!-- file buffer will be used to serve static content -->
93 <!-- when using an NIO connector. Setting this value -->
94 <!-- to false means that a direct buffer will be used -->
95 <!-- instead. If you are having trouble with Windows -->
96 <!-- file locking, set this to false. -->
97 <!-- -->
98 <!-- cacheControl If set, all static content will have this value -->
99 <!-- set as the cache-control header. -->
100 <!-- -->
101 <!-- maxCacheSize Maximum size of the static resource cache -->
102 <!-- -->
103 <!-- maxCachedFileSize Maximum size of any single file in the cache -->
104 <!-- -->
105 <!-- maxCachedFiles Maximum number of files in the cache -->
106 <!-- -->
107 <!-- cacheType "nio", "bio" or "both" to determine the type(s) -->
108 <!-- of resource cache. A bio cached buffer may be used-->
109 <!-- by nio but is not as efficient as a nio buffer. -->
110 <!-- An nio cached buffer may not be used by bio. -->
111 <!-- -->
112 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
113 <servlet>
114 <servlet-name>default</servlet-name>
115 <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
116 <init-param>
117 <param-name>acceptRanges</param-name>
118 <param-value>true</param-value>
119 </init-param>
120 <init-param>
121 <param-name>dirAllowed</param-name>
122 <param-value>true</param-value>
123 </init-param>
124 <init-param>
125 <param-name>welcomeServlets</param-name>
126 <param-value>false</param-value>
127 </init-param>
128 <init-param>
129 <param-name>redirectWelcome</param-name>
130 <param-value>false</param-value>
131 </init-param>
132 <init-param>
133 <param-name>maxCacheSize</param-name>
134 <param-value>256000000</param-value>
135 </init-param>
136 <init-param>
137 <param-name>maxCachedFileSize</param-name>
138 <param-value>10000000</param-value>
139 </init-param>
140 <init-param>
141 <param-name>maxCachedFiles</param-name>
142 <param-value>1000</param-value>
143 </init-param>
144 <init-param>
145 <param-name>cacheType</param-name>
146 <param-value>both</param-value>
147 </init-param>
148 <init-param>
149 <param-name>gzip</param-name>
150 <param-value>true</param-value>
151 </init-param>
152 <init-param>
153 <param-name>useFileMappedBuffer</param-name>
154 <param-value>true</param-value>
155 </init-param>
156 <!--
157 <init-param>
158 <param-name>cacheControl</param-name>
159 <param-value>max-age=3600,public</param-value>
160 </init-param>
161 -->
162 <load-on-startup>0</load-on-startup>
163 </servlet>
164
165 <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
166
167
168 <!-- ==================================================================== -->
169 <!-- JSP Servlet -->
170 <!-- This is the jasper JSP servlet from the jakarta project -->
171 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
172 <!-- The JSP page compiler and execution servlet, which is the mechanism -->
173 <!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
174 <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
175 <!-- following initialization parameters (default values are in square -->
176 <!-- brackets): -->
177 <!-- -->
178 <!-- checkInterval If development is false and reloading is true, -->
179 <!-- background compiles are enabled. checkInterval -->
180 <!-- is the time in seconds between checks to see -->
181 <!-- if a JSP page needs to be recompiled. [300] -->
182 <!-- -->
183 <!-- compiler Which compiler Ant should use to compile JSP -->
184 <!-- pages. See the Ant documenation for more -->
185 <!-- information. [javac] -->
186 <!-- -->
187 <!-- classdebuginfo Should the class file be compiled with -->
188 <!-- debugging information? [true] -->
189 <!-- -->
190 <!-- classpath What class path should I use while compiling -->
191 <!-- generated servlets? [Created dynamically -->
192 <!-- based on the current web application] -->
193 <!-- Set to ? to make the container explicitly set -->
194 <!-- this parameter. -->
195 <!-- -->
196 <!-- development Is Jasper used in development mode (will check -->
197 <!-- for JSP modification on every access)? [true] -->
198 <!-- -->
199 <!-- enablePooling Determines whether tag handler pooling is -->
200 <!-- enabled [true] -->
201 <!-- -->
202 <!-- fork Tell Ant to fork compiles of JSP pages so that -->
203 <!-- a separate JVM is used for JSP page compiles -->
204 <!-- from the one Tomcat is running in. [true] -->
205 <!-- -->
206 <!-- ieClassId The class-id value to be sent to Internet -->
207 <!-- Explorer when using <jsp:plugin> tags. -->
208 <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
209 <!-- -->
210 <!-- javaEncoding Java file encoding to use for generating java -->
211 <!-- source files. [UTF-8] -->
212 <!-- -->
213 <!-- keepgenerated Should we keep the generated Java source code -->
214 <!-- for each page instead of deleting it? [true] -->
215 <!-- -->
216 <!-- logVerbosityLevel The level of detailed messages to be produced -->
217 <!-- by this servlet. Increasing levels cause the -->
218 <!-- generation of more messages. Valid values are -->
219 <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
220 <!-- [WARNING] -->
221 <!-- -->
222 <!-- mappedfile Should we generate static content with one -->
223 <!-- print statement per input line, to ease -->
224 <!-- debugging? [false] -->
225 <!-- -->
226 <!-- -->
227 <!-- reloading Should Jasper check for modified JSPs? [true] -->
228 <!-- -->
229 <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
230 <!-- debugging be suppressed? [false] -->
231 <!-- -->
232 <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
233 <!-- dumped to a file? [false] -->
234 <!-- False if suppressSmap is true -->
235 <!-- -->
236 <!-- scratchdir What scratch directory should we use when -->
237 <!-- compiling JSP pages? [default work directory -->
238 <!-- for the current web application] -->
239 <!-- -->
240 <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
241 <!-- -->
242 <!-- xpoweredBy Determines whether X-Powered-By response -->
243 <!-- header is added by generated servlet [false] -->
244 <!-- -->
245 <!-- If you wish to use Jikes to compile JSP pages: -->
246 <!-- Set the init parameter "compiler" to "jikes". Define -->
247 <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
248 <!-- to cause Jikes to emit error messages in a format compatible with -->
249 <!-- Jasper. -->
250 <!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
251 <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
252 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
253 <servlet id="jsp">
254 <servlet-name>jsp</servlet-name>
255 <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
256 <init-param>
257 <param-name>logVerbosityLevel</param-name>
258 <param-value>DEBUG</param-value>
259 </init-param>
260 <init-param>
261 <param-name>fork</param-name>
262 <param-value>false</param-value>
263 </init-param>
264 <init-param>
265 <param-name>xpoweredBy</param-name>
266 <param-value>false</param-value>
267 </init-param>
268 <!--
269 <init-param>
270 <param-name>classpath</param-name>
271 <param-value>?</param-value>
272 </init-param>
273 -->
274 <load-on-startup>0</load-on-startup>
275 </servlet>
276
277 <servlet-mapping>
278 <servlet-name>jsp</servlet-name>
279 <url-pattern>*.jsp</url-pattern>
280 <url-pattern>*.jspf</url-pattern>
281 <url-pattern>*.jspx</url-pattern>
282 <url-pattern>*.xsp</url-pattern>
283 <url-pattern>*.JSP</url-pattern>
284 <url-pattern>*.JSPF</url-pattern>
285 <url-pattern>*.JSPX</url-pattern>
286 <url-pattern>*.XSP</url-pattern>
287 </servlet-mapping>
288
289 <!-- ==================================================================== -->
290 <!-- Dynamic Servlet Invoker. -->
291 <!-- This servlet invokes anonymous servlets that have not been defined -->
292 <!-- in the web.xml or by other means. The first element of the pathInfo -->
293 <!-- of a request passed to the envoker is treated as a servlet name for -->
294 <!-- an existing servlet, or as a class name of a new servlet. -->
295 <!-- This servlet is normally mapped to /servlet/* -->
296 <!-- This servlet support the following initParams: -->
297 <!-- -->
298 <!-- nonContextServlets If false, the invoker can only load -->
299 <!-- servlets from the contexts classloader. -->
300 <!-- This is false by default and setting this -->
301 <!-- to true may have security implications. -->
302 <!-- -->
303 <!-- verbose If true, log dynamic loads -->
304 <!-- -->
305 <!-- * All other parameters are copied to the -->
306 <!-- each dynamic servlet as init parameters -->
307 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
308 <!-- Uncomment for dynamic invocation
309 <servlet>
310 <servlet-name>invoker</servlet-name>
311 <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
312 <init-param>
313 <param-name>verbose</param-name>
314 <param-value>false</param-value>
315 </init-param>
316 <init-param>
317 <param-name>nonContextServlets</param-name>
318 <param-value>false</param-value>
319 </init-param>
320 <init-param>
321 <param-name>dynamicParam</param-name>
322 <param-value>anyValue</param-value>
323 </init-param>
324 <load-on-startup>0</load-on-startup>
325 </servlet>
326
327 <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
328 -->
329
330
331
332 <!-- ==================================================================== -->
333 <session-config>
334 <session-timeout>30</session-timeout>
335 </session-config>
336
337 <!-- ==================================================================== -->
338 <!-- Default MIME mappings -->
339 <!-- The default MIME mappings are provided by the mime.properties -->
340 <!-- resource in the org.mortbay.jetty.jar file. Additional or modified -->
341 <!-- mappings may be specified here -->
342 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
343 <!-- UNCOMMENT TO ACTIVATE
344 <mime-mapping>
345 <extension>mysuffix</extension>
346 <mime-type>mymime/type</mime-type>
347 </mime-mapping>
348 -->
349
350 <!-- ==================================================================== -->
351 <welcome-file-list>
352 <welcome-file>index.html</welcome-file>
353 <welcome-file>index.htm</welcome-file>
354 <welcome-file>index.jsp</welcome-file>
355 </welcome-file-list>
356
357 <!-- ==================================================================== -->
358 <locale-encoding-mapping-list>
359 <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>
360 <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
361 <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
362 <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
363 <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
364 <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
365 <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
366 <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>
367 <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
368 <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
369 <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
370 <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
371 <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
372 <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
373 <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
374 <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
375 <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
376 <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>
377 <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>
378 <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>
379 <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
380 <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
381 <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
382 <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
383 <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
384 <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
385 <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
386 <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
387 <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
388 <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
389 <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
390 <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
391 <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
392 <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
393 <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
394 <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>
395 <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
396 <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping>
397 <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>
398 </locale-encoding-mapping-list>
399
400 <security-constraint>
401 <web-resource-collection>
402 <web-resource-name>Disable TRACE</web-resource-name>
403 <url-pattern>/</url-pattern>
404 <http-method>TRACE</http-method>
405 </web-resource-collection>
406 <auth-constraint/>
407 </security-constraint>
408
409</web-app>
410
Note: See TracBrowser for help on using the repository browser.