The web-apps.xml File and Virtual Servers
18 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
Example web-apps.xml File
Note that the !DOCTYPE declaration must be present and of the following format:
<!DOCTYPE vs PUBLIC "-//Sun Microsystems, Inc.; iPlanet//DTD
Virtual Server Web Applications 6.0//EN"
"http://developer.iplanet.com/webserver/dtds/iws-webapps_6_0.dtd">
If for some reason if this URL is not accessible, the DTD file is located here:
"file:/server_root/bin/https/dtds/iws-webapps_6_0.dtd"
On Windows NT, be sure to include the drive letter, as follows:
"file:/drive:/server_root_path/bin/https/dtds/iws-webapps_6_0.dtd"
The following web-apps.xml file configures a session manager and one web
application:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- iWS 6.0 specific web application configuration. -->
<!DOCTYPE vs PUBLIC "-//Sun Microsystems, Inc.; iPlanet//DTD
Virtual Server Web Applications 6.0//EN"
"http://developer.iplanet.com/webserver/dtds/iws-webapps_6_0.dtd">
<vs>
<!-- Define global configuration -->
<!- Configure a session manager and tracking configuration -->
<session-manager
class=’com.iplanet.server.http.session.IWSSessionManager’
<init-param>
<param-name>maxSessions</param-name>
<param-value>1000</param-value>
</init-param>
<init-param>
<param-name>timeOut</param-name>
<param-value>1800</param-value>
</init-param>
<init-param>
<param-name>reapInterval</param-name>
<param-value>600</param-value>
</init-param>
<init-param>
<param-name>session-data-dir</param-name>
<param-value>/net/dotcom.com/sessions</param-value>
</init-param>
</session-manager>
Komentarze do niniejszej Instrukcji