]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/modules/org.argeo.server.tomcat/conf/server.xml
Big cleanup of the security layers
[lgpl/argeo-commons.git] / server / modules / org.argeo.server.tomcat / conf / 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
7 2.0 (the "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0 Unless required by
11 applicable law or agreed to in writing, software distributed under the
12 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 CONDITIONS OF ANY KIND, either express or implied. See the License for
14 the specific language governing permissions and limitations under the
15 License.
16 -->
17 <!--
18 Note: A "Server" is not itself a "Container", so you may not define
19 subcomponents such as "Valves" at this level. Documentation at
20 /docs/config/server.html
21 -->
22 <Server port="8005" shutdown="SHUTDOWN">
23
24 <!--APR library loader. Documentation at /docs/apr.html -->
25 <Listener className="org.apache.catalina.core.AprLifecycleListener"
26 SSLEngine="on" />
27 <!--
28 Initialize Jasper prior to webapps are loaded. Documentation at
29 /docs/jasper-howto.html
30 -->
31 <Listener className="org.apache.catalina.core.JasperListener" />
32 <!--
33 JMX Support for the Tomcat server. Documentation at
34 /docs/non-existent.html
35 -->
36 <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
37 <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
38
39
40 <!--
41 A "Service" is a collection of one or more "Connectors" that share a
42 single "Container" Note: A "Service" is not itself a "Container", so
43 you may not define subcomponents such as "Valves" at this level.
44 Documentation at /docs/config/service.html
45 -->
46 <Service name="Catalina">
47
48 <!--
49 The connectors can use a shared executor, you can define one or more
50 named thread pools
51 -->
52 <!--
53 <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
54 maxThreads="150" minSpareThreads="4"/>
55 -->
56
57
58 <!--
59 A "Connector" represents an endpoint by which requests are received
60 and responses are returned. Documentation at : Java HTTP Connector:
61 /docs/config/http.html (blocking & non-blocking) Java AJP Connector:
62 /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define
63 a non-SSL HTTP/1.1 Connector on port 8080
64 -->
65 <Connector port="${argeo.server.port.http}" protocol="HTTP/1.1"
66 connectionTimeout="20000" redirectPort="${argeo.server.port.https}" />
67 <!-- A "Connector" using the shared thread pool-->
68 <!--
69 <Connector executor="tomcatThreadPool" port="8080"
70 protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
71 -->
72 <!--
73 Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the
74 JSSE configuration, when using APR, the connector should be using the
75 OpenSSL style configuration described in the APR documentation
76 -->
77 <!--
78 <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
79 maxThreads="150" scheme="https" secure="true" clientAuth="false"
80 sslProtocol="TLS" />
81 -->
82
83 <!-- Define an AJP 1.3 Connector on port 8009 -->
84 <Connector port="${argeo.server.port.ajp}" protocol="AJP/1.3"
85 redirectPort="${argeo.server.port.https}" />
86
87
88 <!--
89 An Engine represents the entry point (within Catalina) that processes
90 every request. The Engine implementation for Tomcat stand alone
91 analyzes the HTTP headers included with the request, and passes them
92 on to the appropriate Host (virtual host). Documentation at
93 /docs/config/engine.html
94 -->
95
96 <!--
97 You should set jvmRoute to support load-balancing via AJP ie :
98 <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
99 -->
100 <Engine name="Catalina" defaultHost="localhost">
101
102 <!--
103 For clustering, please take a look at documentation at:
104 /docs/cluster-howto.html (simple how to) /docs/config/cluster.html
105 (reference documentation)
106 -->
107 <!--
108 <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
109 -->
110
111 <!--
112 The request dumper valve dumps useful debugging information about
113 the request and response data received and sent by Tomcat.
114 Documentation at: /docs/config/valve.html
115 -->
116 <!--
117 <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
118 -->
119
120
121 <!--
122 Define the default virtual host Note: XML Schema validation will not
123 work with Xerces 2.2.
124 -->
125 <Host name="localhost" appBase="webapps" unpackWARs="true"
126 autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"
127 workDir="work">
128 <!--
129 SingleSignOn valve, share authentication between web applications
130 Documentation at: /docs/config/valve.html
131 -->
132 <!--
133 <Valve className="org.apache.catalina.authenticator.SingleSignOn"
134 />
135 -->
136
137 <!--
138 Access log processes all example. Documentation at:
139 /docs/config/valve.html
140 -->
141 <!--
142 <Valve className="org.apache.catalina.valves.AccessLogValve"
143 directory="logs" prefix="localhost_access_log." suffix=".txt"
144 pattern="common" resolveHosts="false"/>
145 -->
146
147 </Host>
148 </Engine>
149 </Service>
150 </Server>