Changeset 7971
- Timestamp:
- 2004-08-18T03:45:42+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/comms/jakarta/server.xml.in
r7864 r7971 1 <!-- Example ServerConfiguration File -->1 <!-- Alternate Example-less Configuration File --> 2 2 <!-- Note that component elements are nested corresponding to their 3 3 parent-child relationships with each other --> … … 14 14 15 15 16 <!-- Comment these entries out to disable JMX MBeans support --> 17 <!-- You may also configure custom components (e.g. Valves/Realms) by 18 including your own mbean-descriptor file(s), and setting the 19 "descriptors" attribute to point to a ';' seperated list of paths 20 (in the ClassLoader sense) of files to add to the default list. 21 e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml" 22 --> 16 <!-- Uncomment this entry to enable JMX MBeans support --> 17 <!-- 23 18 <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" 24 debug="0"/> 25 <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" 26 debug="0"/> 27 28 <!-- Global JNDI resources --> 29 <GlobalNamingResources> 30 31 <!-- Test entry for demonstration purposes --> 32 <Environment name="simpleValue" type="java.lang.Integer" value="30"/> 33 34 <!-- Editable user database that can also be used by 35 UserDatabaseRealm to authenticate users --> 36 <Resource name="UserDatabase" auth="Container" 37 type="org.apache.catalina.UserDatabase" 38 description="User database that can be updated and saved"> 39 </Resource> 40 <ResourceParams name="UserDatabase"> 41 <parameter> 42 <name>factory</name> 43 <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> 44 </parameter> 45 <parameter> 46 <name>pathname</name> 47 <value>conf/tomcat-users.xml</value> 48 </parameter> 49 </ResourceParams> 50 51 </GlobalNamingResources> 19 debug="0" port="-1" login="admin" password="admin"/> 20 --> 21 52 22 53 23 <!-- A "Service" is a collection of one or more "Connectors" that share … … 89 59 --> 90 60 91 <!-- Define a non-SSL CoyoteHTTP/1.1 Connector on port 8080 -->92 <Connector className="org.apache.c oyote.tomcat4.CoyoteConnector"61 <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> 62 <Connector className="org.apache.catalina.connector.http.HttpConnector" 93 63 port="8080" minProcessors="5" maxProcessors="75" 94 64 enableLookups="true" redirectPort="8443" 95 acceptCount="100" debug="0" connectionTimeout="20000" 96 useURIValidationHack="false" disableUploadTimeout="true" /> 97 <!-- Note : To disable connection timeouts, set connectionTimeout value 98 to 0 --> 99 100 <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> 101 <!-- 102 <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" 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" 103 72 port="8443" minProcessors="5" maxProcessors="75" 104 73 enableLookups="true" 105 acceptCount="100" debug="0" scheme="https" secure="true" 106 useURIValidationHack="false" disableUploadTimeout="true"> 107 <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" 108 clientAuth="false" protocol="TLS" /> 74 acceptCount="10" debug="0" scheme="https" secure="true"> 75 <Factory className="org.apache.catalina.net.SSLServerSocketFactory" 76 clientAuth="false" protocol="TLS"/> 109 77 </Connector> 110 78 --> 111 112 <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->113 <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"114 port="8009" minProcessors="5" maxProcessors="75"115 enableLookups="true" redirectPort="8443"116 acceptCount="10" debug="0" connectionTimeout="0"117 useURIValidationHack="false"118 protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>119 79 120 80 <!-- Define an AJP 1.3 Connector on port 8009 --> … … 125 85 --> 126 86 127 <!-- Define a Proxied HTTP/1.1 Connector on port 808 2-->87 <!-- Define a Proxied HTTP/1.1 Connector on port 8081 --> 128 88 <!-- See proxy documentation for more information about using this. --> 129 89 <!-- 130 <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" 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" 131 100 port="8082" minProcessors="5" maxProcessors="75" 132 enableLookups="true"133 acceptCount="100" debug="0" connectionTimeout="20000"134 proxyPort="80" useURIValidationHack="false"135 disableUploadTimeout="true" />136 -->137 138 <!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->139 <!--140 <Connector className="org.apache.catalina.connector.http.HttpConnector"141 port="8083" minProcessors="5" maxProcessors="75"142 101 enableLookups="true" redirectPort="8443" 143 acceptCount="10" debug="0" /> 144 --> 145 146 <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 --> 147 <!-- 148 <Connector className="org.apache.catalina.connector.http10.HttpConnector" 149 port="8084" minProcessors="5" maxProcessors="75" 150 enableLookups="true" redirectPort="8443" 151 acceptCount="10" debug="0" /> 102 acceptCount="10" debug="0"/> 152 103 --> 153 104 … … 156 107 analyzes the HTTP headers included with the request, and passes them 157 108 on to the appropriate Host (virtual host). --> 158 159 <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :160 <Engine name="Standalone" defaultHost="localhost" debug="0" jvmRoute="jvm1">161 -->162 109 163 110 <!-- Define the top level container in our container hierarchy --> … … 189 136 <!-- Because this Realm is here, an instance will be shared globally --> 190 137 191 <!-- This Realm uses the UserDatabase configured in the global JNDI192 resources under the key "UserDatabase". Any edits193 that are performed against this UserDatabase are immediately194 available for use by the Realm. -->195 <Realm className="org.apache.catalina.realm.UserDatabaseRealm"196 debug="0" resourceName="UserDatabase"/>197 198 <!-- Comment out the old realm but leave here for now in case we199 need to go back quickly -->200 <!--201 138 <Realm className="org.apache.catalina.realm.MemoryRealm" /> 202 -->203 139 204 140 <!-- Replace the above Realm with one of the following to get a Realm … … 232 168 233 169 <!-- Define the default virtual host --> 234 <Host name="localhost" debug="0" appBase="webapps" 170 <Host name="localhost" debug="0" appBase="webapps" 235 171 unpackWARs="true" autoDeploy="true"> 236 172 … … 252 188 (to $CATALINA_HOME) or absolute path to the desired directory. 253 189 --> 254 <!--255 190 <Valve className="org.apache.catalina.valves.AccessLogValve" 256 191 directory="logs" prefix="localhost_access_log." suffix=".txt" 257 pattern="common" resolveHosts="false"/> 258 --> 192 pattern="common"/> 259 193 260 194 <!-- Logger shared by all Contexts related to this virtual host. By … … 266 200 <Logger className="org.apache.catalina.logger.FileLogger" 267 201 directory="logs" prefix="localhost_log." suffix=".txt" 268 202 timestamp="true"/> 269 203 270 204 <!-- Define properties for each web application. This is only needed … … 273 207 directory. --> 274 208 209 <!-- Tomcat Root Context --> 210 <!-- 211 <Context path="" docBase="ROOT" debug="0"/> 212 --> 213 275 214 <!-- GSDL3 Service --> 276 215 <Context path="/gsdl3" docBase="@gsdl3home@/web" debug="1" reloadable="true"> … … 281 220 <Context path="/soap" docBase="@gsdl3home@/comms/soap/soap/webapps/soap" debug="1" reloadable="true"/> 282 221 283 <!-- Tomcat Root Context --> 284 <!-- 285 <Context path="" docBase="ROOT" debug="0"/> 286 --> 287 288 <!-- Tomcat Examples Context --> 289 <Context path="/examples" docBase="examples" debug="0" 290 reloadable="true" crossContext="true"> 291 <Logger className="org.apache.catalina.logger.FileLogger" 292 prefix="localhost_examples_log." suffix=".txt" 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" 293 261 timestamp="true"/> 294 <Ejb name="ejb/EmplRecord" type="Entity" 295 home="com.wombat.empl.EmployeeRecordHome" 296 remote="com.wombat.empl.EmployeeRecord"/> 297 298 <!-- If you wanted the examples app to be able to edit the 299 user database, you would uncomment the following entry. 300 Of course, you would want to enable security on the 301 application as well, so this is not done by default! 302 The database object could be accessed like this: 303 304 Context initCtx = new InitialContext(); 305 Context envCtx = (Context) initCtx.lookup("java:comp/env"); 306 UserDatabase database = 307 (UserDatabase) envCtx.lookup("userDatabase"); 308 --> 309 <!-- 310 <ResourceLink name="userDatabase" global="UserDatabase" 311 type="org.apache.catalina.UserDatabase"/> 312 --> 313 314 315 <!-- PersistentManager: Uncomment the section below to test Persistent 316 Sessions. 317 318 saveOnRestart: If true, all active sessions will be saved 319 to the Store when Catalina is shutdown, regardless of 320 other settings. All Sessions found in the Store will be 321 loaded on startup. Sessions past their expiration are 322 ignored in both cases. 323 maxActiveSessions: If 0 or greater, having too many active 324 sessions will result in some being swapped out. minIdleSwap 325 limits this. -1 or 0 means unlimited sessions are allowed. 326 If it is not possible to swap sessions new sessions will 327 be rejected. 328 This avoids thrashing when the site is highly active. 329 minIdleSwap: Sessions must be idle for at least this long 330 (in seconds) before they will be swapped out due to 331 activity. 332 0 means sessions will almost always be swapped out after 333 use - this will be noticeably slow for your users. 334 maxIdleSwap: Sessions will be swapped out if idle for this 335 long (in seconds). If minIdleSwap is higher, then it will 336 override this. This isn't exact: it is checked periodically. 337 -1 means sessions won't be swapped out for this reason, 338 although they may be swapped out for maxActiveSessions. 339 If set to >= 0, guarantees that all sessions found in the 340 Store will be loaded on startup. 341 maxIdleBackup: Sessions will be backed up (saved to the Store, 342 but left in active memory) if idle for this long (in seconds), 343 and all sessions found in the Store will be loaded on startup. 344 If set to -1 sessions will not be backed up, 0 means they 345 should be backed up shortly after being used. 346 347 To clear sessions from the Store, set maxActiveSessions, maxIdleSwap, 348 and minIdleBackup all to -1, saveOnRestart to false, then restart 349 Catalina. 350 --> 351 <!-- 352 <Manager className="org.apache.catalina.session.PersistentManager" 353 debug="0" 354 saveOnRestart="true" 355 maxActiveSessions="-1" 356 minIdleSwap="-1" 357 maxIdleSwap="-1" 358 maxIdleBackup="-1"> 359 <Store className="org.apache.catalina.session.FileStore"/> 360 </Manager> 361 --> 362 <Environment name="maxExemptions" type="java.lang.Integer" 363 value="15"/> 364 <Parameter name="context.param.name" value="context.param.value" 365 override="false"/> 366 <Resource name="jdbc/EmployeeAppDb" auth="SERVLET" 367 type="javax.sql.DataSource"/> 368 <ResourceParams name="jdbc/EmployeeAppDb"> 369 <parameter><name>username</name><value>sa</value></parameter> 370 <parameter><name>password</name><value></value></parameter> 371 <parameter><name>driverClassName</name> 372 <value>org.hsql.jdbcDriver</value></parameter> 373 <parameter><name>url</name> 374 <value>jdbc:HypersonicSQL:database</value></parameter> 375 </ResourceParams> 376 <Resource name="mail/Session" auth="Container" 377 type="javax.mail.Session"/> 378 <ResourceParams name="mail/Session"> 379 <parameter> 380 <name>mail.smtp.host</name> 381 <value>localhost</value> 382 </parameter> 383 </ResourceParams> 384 <ResourceLink name="linkToGlobalResource" 385 global="simpleValue" 386 type="java.lang.Integer"/> 387 </Context> 388 389 </Host> 262 263 <!-- Because this Realm is here, an instance will be shared globally --> 264 <Realm className="org.apache.catalina.realm.MemoryRealm" /> 390 265 391 266 </Engine> … … 393 268 </Service> 394 269 395 396 270 </Server> 271
Note:
See TracChangeset
for help on using the changeset viewer.