To edit server.xml for your environment, you must know which elements contain the relevant settings. The following sections contain brief descriptions of the elements that configure the functional areas:
In addition, Chapter 3, Elements in server.xml contains an alphabetical list of all the server.xml elements and their subelements.
The acl-file element references an ACL file. ACL files define the authorization rules. The auth-realm and default-auth-realm-name elements configure authentication realms for Java Servlet container authentication. For more information, see acl-file, auth-realm, and default-auth-realm-name.
The auth-db and default-auth-db-name elements configure the authentication databases for server authentication. Authentication databases are used with ACL files. For more information, see auth-db, and default-auth-db-name.
For more information on ACL files, see Chapter 9, ACL Files.
The cluster element defines a cluster of servers to which an individual server instance belongs. The instance element defines an individual member of a cluster. The session-replication element configures how Java Servlet sessions are shared between instances in a cluster. For more information, see cluster, instance, and session-replication.
The http element configures the general HTTP protocol options. The keep-alive element configures HTTP keep-alive connection management. The http–listener element configures the ports and IP addresses on which the server listens for new HTTP connections. The virtual-server element configures how the server processes the HTTP requests. For more information, see http, keep-alive, http-listener, and virtual-server.
The following elements configure the Java Servlet container:
The servlet-container element configures miscellaneous Servlet container options. For more information, see servlet-container.
The auth-realm element defines an authentication realm for Java Servlet container authentication. For more information, see auth-realm.
The default-auth-realm-name element specifies the default authentication realm for Java Servlet container authentication. For more information, see default-auth-realm-name.
The single-sign-on element determines how the authentication information is shared across multiple Java web applications. For more information, see single-sign-on.
The web-app element defines the location of a Java web application. For more information, see web-app.
The following elements configure the Java Naming and Directory InterfaceTM (JNDI) resources:
The custom-resource element defines a resource implemented by a custom Java class. For more information, see custom-resource.
The external-jndi-resource element identifies the resource provided by an external JNDI repository. For more information, see external-jndi-resource.
The jdbc-resource element configures a Java Database Connectivity (JDBCTM) data source. For more information, see jdbc-resource.
The mail-resource element configures a mail store resource. For more information, see mail-resource.
The lifecycle-module element loads the custom Java plug-ins that are triggered by one or more events in the server's lifecycle. For more information lifecycle-module.
The soap-auth-provider element configures message-level authentication for Java web services. For more information, see soap-auth-provider.
The jvm element configures the Java Virtual Machine (JVM). For more information, see jvm.
The access-log element configures the file name and formats of access logs. The access-log-buffer element configures the frequency of access log updates and ordering of the access log entries. For more information, see access-log and access-log-buffer.
The thread-pool element configures the number of threads used to process requests and the maximum number of HTTP connections that the server queues. For more information, see thread-pool.
The keep-alive element configures the HTTP keep-alive connection management. For more information, see keep-alive.
The file-cache element configures file caching. The dns-cache element configures the DNS caching. The acl-cache element configures the authentication credential caching. For more information, see file-cache, dns-cache, and acl-cache.
The search-collection element defines the set of documents that the server should index. The search-app element configures the server's built-in search web application. For more information, see search-collection and search-app.
The pkcs11 element configures the PKCS #11 subsystem, including Certificate Revocation Lists (CRLs) and third-party cryptographic modules. For more information, see pkcs11.
The variable element defines a variable for use in expressions, log formats, and obj.conf parameters. For more information on the variable element, see variable. For more information on variable and expression use, see Appendix A, Using Variables, Expressions, and String Interpolation. For more information on the log file format, see Appendix C, Using the Custom Log File Format.
The virtual-server element configures the virtual servers. Each virtual server accepts HTTP connections from one or more HTTP listeners. The http-listener element configures the HTTP listeners. For more information, see virtual-server, and http-listener.
You can define variables within a virtual server using the variable element, as described in the previous section, Variables.