source: apps/i2ptunnel/jsp/web.xml @ 2aceca5

Last change on this file since 2aceca5 was 2aceca5, checked in by zzz <zzz@…>, 2 years ago

Console: Add error handler to all webapps (ticket #2155)
Fix up default servlet handling in i2ptunnel and susidns

  • Property mode set to 100644
File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE web-app
3    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
4    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
5
6<web-app>
7    <filter>
8        <filter-name>XSSFilter</filter-name>
9        <filter-class>net.i2p.servlet.filters.XSSFilter</filter-class>
10    </filter>
11    <filter-mapping>
12        <filter-name>XSSFilter</filter-name>
13        <url-pattern>/*</url-pattern>
14    </filter-mapping>
15
16    <servlet>
17      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
18      <servlet-class>net.i2p.servlet.ErrorServlet</servlet-class>
19      <init-param>
20        <param-name>name</param-name>
21        <param-value>Hidden Services Manager</param-value>
22      </init-param>
23    </servlet>
24
25    <!-- precompiled servlets -->
26
27    <!-- yeah we could do this in a handler but this is easier -->
28    <servlet-mapping>
29        <servlet-name>net.i2p.i2ptunnel.jsp.index_jsp</servlet-name>
30        <!-- empty pattern handles the root -->
31        <url-pattern></url-pattern>
32    </servlet-mapping>
33
34    <servlet-mapping>
35        <servlet-name>net.i2p.i2ptunnel.jsp.index_jsp</servlet-name>
36        <url-pattern>/index</url-pattern>
37    </servlet-mapping>
38
39    <servlet-mapping>
40        <servlet-name>net.i2p.i2ptunnel.jsp.index_jsp</servlet-name>
41        <url-pattern>/index.html</url-pattern>
42    </servlet-mapping>
43
44    <servlet-mapping>
45        <servlet-name>net.i2p.i2ptunnel.jsp.edit_jsp</servlet-name>
46        <url-pattern>/edit</url-pattern>
47    </servlet-mapping>
48
49    <servlet-mapping>
50        <servlet-name>net.i2p.i2ptunnel.jsp.wizard_jsp</servlet-name>
51        <url-pattern>/wizard</url-pattern>
52    </servlet-mapping>
53
54    <servlet-mapping>
55        <servlet-name>net.i2p.i2ptunnel.jsp.register_jsp</servlet-name>
56        <url-pattern>/register</url-pattern>
57    </servlet-mapping>
58
59    <servlet-mapping>
60      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
61      <url-pattern>/error</url-pattern>
62    </servlet-mapping>
63
64    <!-- this webapp doesn't actually use sessions or cookies -->
65    <session-config>
66        <session-timeout>
67            30
68        </session-timeout>
69        <cookie-config>
70            <http-only>true</http-only>
71        </cookie-config>
72    </session-config>
73    <welcome-file-list>
74        <welcome-file>index.html</welcome-file>
75        <welcome-file>index.jsp</welcome-file>
76    </welcome-file-list>
77
78    <error-page>
79        <error-code>403</error-code>
80        <location>/error</location>
81    </error-page>
82    <error-page>
83        <error-code>404</error-code>
84        <location>/error</location>
85    </error-page>
86    <error-page>
87        <error-code>500</error-code>
88        <location>/error</location>
89    </error-page>
90</web-app>
Note: See TracBrowser for help on using the repository browser.