contains only admin templates which should not be changed by users
[mir.git] / etc / web.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2
3 <!DOCTYPE web-app
4     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
5     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
6
7 <web-app>
8     <servlet>
9         <servlet-name>
10             Mir
11         </servlet-name>
12         <servlet-class>
13             Mir
14         </servlet-class>
15
16         <init-param>
17             <param-name>Config</param-name>
18             <param-value>etc/config.properties</param-value>
19         </init-param>
20
21     </servlet>
22
23     <servlet>
24         <servlet-name>
25             OpenMir
26         </servlet-name>
27         <servlet-class>
28             OpenMir
29         </servlet-class>
30
31         <init-param>
32             <param-name>Config</param-name>
33             <param-value>config</param-value>
34         </init-param>
35
36     </servlet>
37     
38     <servlet>
39         <servlet-name>
40             OutputMir
41         </servlet-name>
42         <servlet-class>
43             OutputMir
44         </servlet-class>
45
46         <init-param>
47             <param-name>Config</param-name>
48             <param-value>config</param-value>
49         </init-param>
50
51     </servlet>
52
53     <servlet-mapping>
54         <servlet-name>
55             Mir
56         </servlet-name>
57         <url-pattern>
58             /Mir
59         </url-pattern>
60     </servlet-mapping>
61
62     <servlet-mapping>
63         <servlet-name>OpenMir</servlet-name>
64         <url-pattern>/OpenMir</url-pattern>
65     </servlet-mapping>
66
67     <servlet-mapping>
68         <servlet-name>OutputMir</servlet-name>
69         <url-pattern>/OutputMir</url-pattern>
70     </servlet-mapping>
71
72     <mime-mapping>
73       <extension>
74         mp3 
75       </extension>
76       <mime-type>
77         audio/x-mp3
78       </mime-type>
79     </mime-mapping>
80     <mime-mapping>
81       <extension>
82         ra
83       </extension>
84       <mime-type>
85         audio/vnd.rn-realaudio
86       </mime-type>
87     </mime-mapping>
88     <mime-mapping>
89       <extension>
90         rm
91       </extension>
92       <mime-type>
93         application/vnd.rn-realmedia
94       </mime-type>
95     </mime-mapping>
96     <mime-mapping>
97       <extension>
98         mov
99       </extension>
100       <mime-type>
101         video/quicktime 
102       </mime-type>
103     </mime-mapping>
104     <mime-mapping>
105       <extension>
106         mpg
107       </extension>
108       <mime-type>
109         video/mpeg
110       </mime-type>
111     </mime-mapping>
112     <mime-mapping>
113       <extension>
114         avi
115       </extension>
116       <mime-type>
117         video/x-msvideo
118       </mime-type>
119     </mime-mapping>
120     <mime-mapping>
121       <extension>
122         asf
123       </extension>
124       <mime-type>
125         video/x-ms-asf
126       </mime-type>
127     </mime-mapping>
128     <mime-mapping>
129       <extension>
130         pdf
131       </extension>
132       <mime-type>
133         application/pdf
134       </mime-type>
135     </mime-mapping>
136
137
138
139     <taglib>
140         <taglib-uri>
141            http://java.apache.org/tomcat/examples-taglib
142         </taglib-uri>
143         <taglib-location>
144            /WEB-INF/jsp/example-taglib.tld
145         </taglib-location>
146     </taglib>
147
148     <security-constraint>
149       <web-resource-collection>
150          <web-resource-name>Protected Area</web-resource-name>
151          <!-- Define the context-relative URL(s) to be protected -->
152          <url-pattern>/jsp/security/protected/*</url-pattern>
153          <!-- If you list http methods, only those methods are protected -->
154          <http-method>DELETE</http-method>
155          <http-method>GET</http-method>
156          <http-method>POST</http-method>
157          <http-method>PUT</http-method>
158       </web-resource-collection>
159       <auth-constraint>
160          <!-- Anyone with one of the listed roles may access this area -->
161          <role-name>tomcat</role-name>
162          <role-name>role1</role-name>
163       </auth-constraint>
164     </security-constraint>
165
166     <!-- Default login configuration uses BASIC authentication -->
167     <!--
168     <login-config>
169       <auth-method>BASIC</auth-method>
170       <realm-name>Example Basic Authentication Area</realm-name>
171     </login-config>
172     -->
173
174     <!-- Form-based login is enabled by default.  If you wish to
175          try Basic authentication, comment out the <login-config>
176          section below and uncomment the one above. -->
177     <login-config>
178       <auth-method>FORM</auth-method>
179       <realm-name>Example Form-Based Authentication Area</realm-name>
180       <form-login-config>
181         <form-login-page>/jsp/security/login/login.jsp</form-login-page>
182         <form-error-page>/jsp/security/login/error.jsp</form-error-page>
183       </form-login-config>
184     </login-config>
185
186 </web-app>