source: apps/susidns/src/WEB-INF/web-template.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: 3.6 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<web-app>
6    <filter>
7        <filter-name>XSSFilter</filter-name>
8        <filter-class>net.i2p.servlet.filters.XSSFilter</filter-class>
9    </filter>
10    <filter-mapping>
11        <filter-name>XSSFilter</filter-name>
12        <url-pattern>/*</url-pattern>
13    </filter-mapping>
14
15  <display-name>susidns</display-name>
16
17    <servlet>
18        <servlet-name>addressbook-runner</servlet-name>
19        <servlet-class>net.i2p.addressbook.servlet.Servlet</servlet-class>
20        <init-param>
21            <param-name>home</param-name>
22            <param-value>./addressbook</param-value>
23        </init-param>
24        <load-on-startup>1</load-on-startup>
25    </servlet>
26
27    <servlet>
28      <servlet-name>i2p.susi.dns.TranslateSVGServlet</servlet-name>
29      <servlet-class>i2p.susi.dns.TranslateSVGServlet</servlet-class>
30    </servlet>
31
32    <servlet>
33      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
34      <servlet-class>net.i2p.servlet.ErrorServlet</servlet-class>
35      <init-param>
36        <param-name>name</param-name>
37        <param-value>Addressbook</param-value>
38      </init-param>
39    </servlet>
40
41    <servlet-mapping> 
42      <servlet-name>addressbook-runner</servlet-name>
43      <url-pattern>/addressbook-runner</url-pattern>
44    </servlet-mapping>
45
46    <!-- precompiled servlets -->
47
48    <!-- non-.jsp URLs -->
49
50    <servlet-mapping>
51        <servlet-name>i2p.susi.dns.jsp.config_jsp</servlet-name>
52        <url-pattern>/config</url-pattern>
53    </servlet-mapping>
54
55    <servlet-mapping>
56        <servlet-name>i2p.susi.dns.jsp.subscriptions_jsp</servlet-name>
57        <url-pattern>/subscriptions</url-pattern>
58    </servlet-mapping>
59
60    <servlet-mapping>
61        <servlet-name>i2p.susi.dns.jsp.addressbook_jsp</servlet-name>
62        <url-pattern>/addressbook</url-pattern>
63    </servlet-mapping>
64
65    <servlet-mapping>
66        <servlet-name>i2p.susi.dns.jsp.details_jsp</servlet-name>
67        <url-pattern>/details</url-pattern>
68    </servlet-mapping>
69
70    <servlet-mapping>
71        <servlet-name>i2p.susi.dns.jsp.index_jsp</servlet-name>
72        <url-pattern>/index</url-pattern>
73    </servlet-mapping>
74
75    <servlet-mapping>
76        <servlet-name>i2p.susi.dns.jsp.index_jsp</servlet-name>
77        <url-pattern>/index.html</url-pattern>
78    </servlet-mapping>
79
80    <servlet-mapping>
81        <servlet-name>i2p.susi.dns.jsp.index_jsp</servlet-name>
82        <!-- empty pattern handles the root -->
83        <url-pattern></url-pattern>
84    </servlet-mapping>
85
86    <servlet-mapping>
87        <servlet-name>i2p.susi.dns.jsp.export_jsp</servlet-name>
88        <url-pattern>/export</url-pattern>
89    </servlet-mapping>
90
91    <servlet-mapping>
92      <servlet-name>i2p.susi.dns.TranslateSVGServlet</servlet-name>
93      <url-pattern>/images/*</url-pattern>
94    </servlet-mapping>
95
96    <servlet-mapping>
97      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
98      <url-pattern>/error</url-pattern>
99    </servlet-mapping>
100
101    <session-config>
102        <session-timeout>
103            30
104        </session-timeout>
105    </session-config>
106    <welcome-file-list>
107        <welcome-file>index.html</welcome-file>
108        <welcome-file>index.jsp</welcome-file>
109    </welcome-file-list>
110
111    <error-page>
112        <error-code>403</error-code>
113        <location>/error</location>
114    </error-page>
115    <error-page>
116        <error-code>404</error-code>
117        <location>/error</location>
118    </error-page>
119    <error-page>
120        <error-code>500</error-code>
121        <location>/error</location>
122    </error-page>
123
124</web-app>
Note: See TracBrowser for help on using the repository browser.