Merge "Add type of transaction being created to log message"
[controller.git] / opendaylight / distribution / opendaylight-karaf-resources / src / main / resources / configuration / tomcat-server.xml
1 <?xml version='1.0' encoding='utf-8'?>
2 <!--
3   Licensed to the Apache Software Foundation (ASF) under one or more
4   contributor license agreements.  See the NOTICE file distributed with
5   this work for additional information regarding copyright ownership.
6   The ASF licenses this file to You under the Apache License, Version 2.0
7   (the "License"); you may not use this file except in compliance with
8   the License.  You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17 -->
18 <Server>
19   <!--APR library loader. Documentation at /docs/apr.html -->
20   <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
21   <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
22   <Listener className="org.apache.catalina.core.JasperListener" />
23   <!-- Prevent memory leaks due to use of particular java/javax APIs-->
24   <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
25   <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
26   <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
27
28   <Service name="Catalina">
29     <Connector port="8080" protocol="HTTP/1.1"
30                connectionTimeout="20000"
31                redirectPort="8443" />
32
33 <!--
34         Please remove the comments around the following Connector tag to enable HTTPS Authentication support.
35         Remember to add a valid keystore in the configuration folder.
36         More info : http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
37 -->
38
39  <!--
40     <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
41                maxThreads="150" scheme="https" secure="true"
42                clientAuth="false" sslProtocol="TLS"
43                keystoreFile="configuration/keystore"
44                keystorePass="changeit"/>
45  -->
46
47     <Engine name="Catalina" defaultHost="localhost">
48       <Host name="localhost" appBase=""
49             unpackWARs="false" autoDeploy="false"
50             deployOnStartup="false" createDirs="false">
51             <Realm className="org.opendaylight.controller.karafsecurity.ControllerCustomRealm" />
52             <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
53             <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
54                         prefix="web_access_log_" suffix=".txt" resolveHosts="false"
55                         rotatable="true" fileDateFormat="yyyy-MM"
56                         pattern="%{yyyy-MM-dd HH:mm:ss.SSS z}t - [%a] - %r"/>
57       </Host>
58     </Engine>
59   </Service>
60 </Server>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.