source: apps/i2ptunnel/jsp/web.xml

Last change on this file was 624a6722, checked in by zzz <zzz@…>, 3 years ago

i2ptunnel: Initial SSL setup wizard
Includes Jetty XML configuration parser
Work in progress, doesn't work, not linked from anywhere

  • Property mode set to 100644
File size: 3.2 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.index_jsp</servlet-name>
46        <!-- POST target -->
47        <url-pattern>/list</url-pattern>
48    </servlet-mapping>
49
50    <servlet-mapping>
51        <servlet-name>net.i2p.i2ptunnel.jsp.index_jsp</servlet-name>
52        <url-pattern>/list.jsp</url-pattern>
53    </servlet-mapping>
54
55    <servlet-mapping>
56        <servlet-name>net.i2p.i2ptunnel.jsp.edit_jsp</servlet-name>
57        <url-pattern>/edit</url-pattern>
58    </servlet-mapping>
59
60    <servlet-mapping>
61        <servlet-name>net.i2p.i2ptunnel.jsp.wizard_jsp</servlet-name>
62        <url-pattern>/wizard</url-pattern>
63    </servlet-mapping>
64
65    <servlet-mapping>
66        <servlet-name>net.i2p.i2ptunnel.jsp.register_jsp</servlet-name>
67        <url-pattern>/register</url-pattern>
68    </servlet-mapping>
69
70    <servlet-mapping>
71        <servlet-name>net.i2p.i2ptunnel.jsp.ssl_jsp</servlet-name>
72        <url-pattern>/ssl</url-pattern>
73    </servlet-mapping>
74
75    <servlet-mapping>
76      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
77      <url-pattern>/error</url-pattern>
78    </servlet-mapping>
79
80    <!-- this webapp doesn't actually use sessions or cookies -->
81    <session-config>
82        <session-timeout>
83            30
84        </session-timeout>
85        <cookie-config>
86            <http-only>true</http-only>
87        </cookie-config>
88    </session-config>
89    <welcome-file-list>
90        <welcome-file>index.html</welcome-file>
91        <welcome-file>index.jsp</welcome-file>
92    </welcome-file-list>
93
94    <error-page>
95        <error-code>403</error-code>
96        <location>/error</location>
97    </error-page>
98    <error-page>
99        <error-code>404</error-code>
100        <location>/error</location>
101    </error-page>
102    <error-page>
103        <error-code>500</error-code>
104        <location>/error</location>
105    </error-page>
106</web-app>
Note: See TracBrowser for help on using the repository browser.