source: trunk/gsdl3/comms/jakarta/server.xml.in@ 7971

Last change on this file since 7971 was 7971, checked in by kjdon, 20 years ago

I think the old version was from the older tomcat. have replaced it with the no examples version form the new tomcat

  • Property svn:keywords set to Author Date Id Revision
File size: 12.0 KB
Line 
1<!-- Alternate Example-less Configuration File -->
2<!-- Note that component elements are nested corresponding to their
3 parent-child relationships with each other -->
4
5<!-- A "Server" is a singleton element that represents the entire JVM,
6 which may contain one or more "Service" instances. The Server
7 listens for a shutdown command on the indicated port.
8
9 Note: A "Server" is not itself a "Container", so you may not
10 define subcomponents such as "Valves" or "Loggers" at this level.
11 -->
12
13<Server port="8005" shutdown="SHUTDOWN" debug="0">
14
15
16 <!-- Uncomment this entry to enable JMX MBeans support -->
17<!--
18 <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
19 debug="0" port="-1" login="admin" password="admin"/>
20-->
21
22
23 <!-- A "Service" is a collection of one or more "Connectors" that share
24 a single "Container" (and therefore the web applications visible
25 within that Container). Normally, that Container is an "Engine",
26 but this is not required.
27
28 Note: A "Service" is not itself a "Container", so you may not
29 define subcomponents such as "Valves" or "Loggers" at this level.
30 -->
31
32 <!-- Define the Tomcat Stand-Alone Service -->
33 <Service name="Tomcat-Standalone">
34
35 <!-- A "Connector" represents an endpoint by which requests are received
36 and responses are returned. Each Connector passes requests on to the
37 associated "Container" (normally an Engine) for processing.
38
39 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
40 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
41 following the instructions below and uncommenting the second Connector
42 entry. SSL support requires the following steps (see the SSL Config
43 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
44 instructions):
45 * Download and install JSSE 1.0.2 or later, and put the JAR files
46 into "$JAVA_HOME/jre/lib/ext".
47 * Execute:
48 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
49 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
50 with a password value of "changeit" for both the certificate and
51 the keystore itself.
52
53 By default, DNS lookups are enabled when a web application calls
54 request.getRemoteHost(). This can have an adverse impact on
55 performance, so you can disable it by setting the
56 "enableLookups" attribute to "false". When DNS lookups are disabled,
57 request.getRemoteHost() will return the String version of the
58 IP address of the remote client.
59 -->
60
61 <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
62 <Connector className="org.apache.catalina.connector.http.HttpConnector"
63 port="8080" minProcessors="5" maxProcessors="75"
64 enableLookups="true" redirectPort="8443"
65 acceptCount="10" debug="0" connectionTimeout="60000"/>
66 <!-- Note : To disable connection timeouts, set connectionTimeout value
67 to -1 -->
68
69 <!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
70 <!--
71 <Connector className="org.apache.catalina.connector.http.HttpConnector"
72 port="8443" minProcessors="5" maxProcessors="75"
73 enableLookups="true"
74 acceptCount="10" debug="0" scheme="https" secure="true">
75 <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
76 clientAuth="false" protocol="TLS"/>
77 </Connector>
78 -->
79
80 <!-- Define an AJP 1.3 Connector on port 8009 -->
81 <!--
82 <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
83 port="8009" minProcessors="5" maxProcessors="75"
84 acceptCount="10" debug="0"/>
85 -->
86
87 <!-- Define a Proxied HTTP/1.1 Connector on port 8081 -->
88 <!-- See proxy documentation for more information about using this. -->
89 <!--
90 <Connector className="org.apache.catalina.connector.http.HttpConnector"
91 port="8081" minProcessors="5" maxProcessors="75"
92 enableLookups="true"
93 acceptCount="10" debug="0" connectionTimeout="60000"
94 proxyPort="80"/>
95 -->
96
97 <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -->
98 <!--
99 <Connector className="org.apache.catalina.connector.http10.HttpConnector"
100 port="8082" minProcessors="5" maxProcessors="75"
101 enableLookups="true" redirectPort="8443"
102 acceptCount="10" debug="0"/>
103 -->
104
105 <!-- An Engine represents the entry point (within Catalina) that processes
106 every request. The Engine implementation for Tomcat stand alone
107 analyzes the HTTP headers included with the request, and passes them
108 on to the appropriate Host (virtual host). -->
109
110 <!-- Define the top level container in our container hierarchy -->
111 <Engine name="Standalone" defaultHost="localhost" debug="0">
112
113 <!-- The request dumper valve dumps useful debugging information about
114 the request headers and cookies that were received, and the response
115 headers and cookies that were sent, for all requests received by
116 this instance of Tomcat. If you care only about requests to a
117 particular virtual host, or a particular application, nest this
118 element inside the corresponding <Host> or <Context> entry instead.
119
120 For a similar mechanism that is portable to all Servlet 2.3
121 containers, check out the "RequestDumperFilter" Filter in the
122 example application (the source for this filter may be found in
123 "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
124
125 Request dumping is disabled by default. Uncomment the following
126 element to enable it. -->
127 <!--
128 <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
129 -->
130
131 <!-- Global logger unless overridden at lower levels -->
132 <Logger className="org.apache.catalina.logger.FileLogger"
133 prefix="catalina_log." suffix=".txt"
134 timestamp="true"/>
135
136 <!-- Because this Realm is here, an instance will be shared globally -->
137
138 <Realm className="org.apache.catalina.realm.MemoryRealm" />
139
140 <!-- Replace the above Realm with one of the following to get a Realm
141 stored in a database and accessed via JDBC -->
142
143 <!--
144 <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
145 driverName="org.gjt.mm.mysql.Driver"
146 connectionURL="jdbc:mysql://localhost/authority"
147 connectionName="test" connectionPassword="test"
148 userTable="users" userNameCol="user_name" userCredCol="user_pass"
149 userRoleTable="user_roles" roleNameCol="role_name" />
150 -->
151
152 <!--
153 <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
154 driverName="oracle.jdbc.driver.OracleDriver"
155 connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
156 connectionName="scott" connectionPassword="tiger"
157 userTable="users" userNameCol="user_name" userCredCol="user_pass"
158 userRoleTable="user_roles" roleNameCol="role_name" />
159 -->
160
161 <!--
162 <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
163 driverName="sun.jdbc.odbc.JdbcOdbcDriver"
164 connectionURL="jdbc:odbc:CATALINA"
165 userTable="users" userNameCol="user_name" userCredCol="user_pass"
166 userRoleTable="user_roles" roleNameCol="role_name" />
167 -->
168
169 <!-- Define the default virtual host -->
170 <Host name="localhost" debug="0" appBase="webapps"
171 unpackWARs="true" autoDeploy="true">
172
173 <!-- Normally, users must authenticate themselves to each web app
174 individually. Uncomment the following entry if you would like
175 a user to be authenticated the first time they encounter a
176 resource protected by a security constraint, and then have that
177 user identity maintained across *all* web applications contained
178 in this virtual host. -->
179 <!--
180 <Valve className="org.apache.catalina.authenticator.SingleSignOn"
181 debug="0"/>
182 -->
183
184 <!-- Access log processes all requests for this virtual host. By
185 default, log files are created in the "logs" directory relative to
186 $CATALINA_HOME. If you wish, you can specify a different
187 directory with the "directory" attribute. Specify either a relative
188 (to $CATALINA_HOME) or absolute path to the desired directory.
189 -->
190 <Valve className="org.apache.catalina.valves.AccessLogValve"
191 directory="logs" prefix="localhost_access_log." suffix=".txt"
192 pattern="common"/>
193
194 <!-- Logger shared by all Contexts related to this virtual host. By
195 default (when using FileLogger), log files are created in the "logs"
196 directory relative to $CATALINA_HOME. If you wish, you can specify
197 a different directory with the "directory" attribute. Specify either a
198 relative (to $CATALINA_HOME) or absolute path to the desired
199 directory.-->
200 <Logger className="org.apache.catalina.logger.FileLogger"
201 directory="logs" prefix="localhost_log." suffix=".txt"
202 timestamp="true"/>
203
204 <!-- Define properties for each web application. This is only needed
205 if you want to set non-default properties, or have web application
206 document roots in places other than the virtual host's appBase
207 directory. -->
208
209 <!-- Tomcat Root Context -->
210 <!--
211 <Context path="" docBase="ROOT" debug="0"/>
212 -->
213
214 <!-- GSDL3 Service -->
215 <Context path="/gsdl3" docBase="@gsdl3home@/web" debug="1" reloadable="true">
216 <Resources allowLinking='true'/>
217 </Context>
218
219 <!-- SOAP Service -->
220 <Context path="/soap" docBase="@gsdl3home@/comms/soap/soap/webapps/soap" debug="1" reloadable="true"/>
221
222 </Host>
223
224 </Engine>
225
226 </Service>
227
228 <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
229 as its servlet container. Please read the README.txt file coming with
230 the WebApp Module distribution on how to build it.
231 (Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
232
233 To configure the Apache side, you must ensure that you have the
234 "ServerName" and "Port" directives defined in "httpd.conf". Then,
235 lines like these to the bottom of your "httpd.conf" file:
236
237 LoadModule webapp_module libexec/mod_webapp.so
238 WebAppConnection warpConnection warp localhost:8008
239 WebAppDeploy examples warpConnection /examples/
240
241 The next time you restart Apache (after restarting Tomcat, if needed)
242 the connection will be established, and all applications you make
243 visible via "WebAppDeploy" directives can be accessed through Apache.
244 -->
245
246 <!-- Define an Apache-Connector Service -->
247 <Service name="Tomcat-Apache">
248
249 <Connector className="org.apache.catalina.connector.warp.WarpConnector"
250 port="8008" minProcessors="5" maxProcessors="75"
251 enableLookups="true"
252 acceptCount="10" debug="0"/>
253
254 <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
255 <Engine className="org.apache.catalina.connector.warp.WarpEngine"
256 name="Apache" debug="0" appBase="webapps">
257
258 <!-- Global logger unless overridden at lower levels -->
259 <Logger className="org.apache.catalina.logger.FileLogger"
260 prefix="apache_log." suffix=".txt"
261 timestamp="true"/>
262
263 <!-- Because this Realm is here, an instance will be shared globally -->
264 <Realm className="org.apache.catalina.realm.MemoryRealm" />
265
266 </Engine>
267
268 </Service>
269
270</Server>
271
Note: See TracBrowser for help on using the repository browser.