| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| license agreements. See the NOTICE file distributed with this work for additional |
| information regarding copyright ownership. The ASF licenses this file to |
| you under the Apache License, Version 2.0 (the "License"); you may not use |
| this file except in compliance with the License. You may obtain a copy of |
| the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| by applicable law or agreed to in writing, software distributed under the |
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| OF ANY KIND, either express or implied. See the License for the specific |
| language governing permissions and limitations under the License. --> |
| <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee |
| http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" |
| version="3.1" metadata-complete="true"> |
| <!-- ======================================================================== --> |
| <!-- --> |
| <!-- Web Application descriptor --> |
| <!-- --> |
| <!-- ======================================================================== --> |
| |
| <!-- ======================================================================== --> |
| <!-- --> |
| <!-- Uncomment the following block if you want to use the Session Service --> |
| <!-- --> |
| <!-- ======================================================================== --> |
| <!-- <listener> <listener-class>org.apache.turbine.services.session.SessionListener</listener-class> |
| </listener> --> |
| |
| <servlet> |
| <description>${turbine_app_name}</description> |
| <servlet-name>Turbine</servlet-name> |
| <servlet-class>org.apache.turbine.Turbine</servlet-class> |
| <init-param> |
| <param-name>applicationRoot</param-name> |
| <param-value>webContext</param-value> |
| </init-param> |
| <init-param> |
| <param-name>properties</param-name> |
| <param-value>WEB-INF/conf/TurbineResources.properties</param-value> |
| </init-param> |
| <load-on-startup>1</load-on-startup> |
| </servlet> |
| |
| <servlet-mapping> |
| <servlet-name>Turbine</servlet-name> |
| <url-pattern>/app/*</url-pattern> |
| </servlet-mapping> |
| |
| <session-config> |
| <session-timeout>60</session-timeout><!-- in minutes --> |
| <cookie-config> |
| <max-age>3600</max-age> <!-- in seconds --> |
| </cookie-config> |
| </session-config> |
| |
| <!-- ======================================================================== --> |
| <!-- --> |
| <!-- Redirect the home page of the application to the turbine servlet --> |
| <!-- --> |
| <!-- ======================================================================== --> |
| |
| <welcome-file-list> |
| <welcome-file>app</welcome-file> |
| </welcome-file-list> |
| |
| |
| <!-- ======================================================================== --> |
| <!-- --> |
| <!-- JNDI Ressource --> |
| <!-- ======================================================================== --> |
| |
| <resource-ref> |
| <res-ref-name>${turbine_database_jndipath}</res-ref-name> |
| <res-type>javax.sql.DataSource</res-type> |
| <res-auth>Container</res-auth> |
| </resource-ref> |
| |
| <!-- ======================================================================== --> |
| <!-- --> |
| <!-- Make sure that templates and logs are not available through --> |
| <!-- the servlet container. Remove security constraints or add an authen- --> |
| <!-- tication role if you need access to these paths. --> |
| <!-- --> |
| <!-- ======================================================================== --> |
| |
| <security-constraint> |
| <web-resource-collection> |
| <web-resource-name>templates</web-resource-name> |
| <url-pattern>/templates/*</url-pattern> |
| </web-resource-collection> |
| <web-resource-collection> |
| <web-resource-name>logs</web-resource-name> |
| <url-pattern>/logs/*</url-pattern> |
| </web-resource-collection> |
| <auth-constraint /> |
| </security-constraint> |
| </web-app> |