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