Sample weblogic.xml This section contains a sample weblogic.xml file. The Proxy Servlet Deployment Parameters Key parameters for configuring the

10-14 Using Clusters for Oracle WebLogic Server

10.2.9.1.2 Sample weblogic.xml This section contains a sample weblogic.xml file. The

context-root deployment parameter is set to . This makes the proxy servlet the default Web application for the proxy server. DOCTYPE weblogic-web-app PUBLIC -BEA Systems, Inc.DTD Web Application 9.1EN http:www.bea.comserverswls810dtdweblogic 810-web-jar.dtd weblogic-web-app context-rootcontext-root weblogic-web-app

10.2.9.1.3 Proxy Servlet Deployment Parameters Key parameters for configuring the

behavior of the proxy servlet in web.xml are listed in Table 10.1 . The parameters for the proxy servlet are the same as those used to configure WebLogic Server plug-ins for Apache, Microsoft, and Netscape Web servers. For a complete list of parameters for configuring the proxy servlet and the plug-ins for third-part Web servers see Parameters for Web Server Plug-ins in Using Web Server Plug-Ins with WebLogic Server. The syntax for specifying the parameters, and the file where they are specified, is different for the proxy servlet and for each of the plug-ins. For the proxy servlet, specify the parameters in web.xml, each in its own init-param stanza within the servlet stanza of web.xml. For example: init-param param-nameParameterNameparam-name param-valueParameterValueparam-value init-param Setting up WebLogic Clusters 10-15 Table 10–1 Proxy Servlet Deployment Parameter Parameter Usage WebLogicCluster init-param param-nameWebLogicClusterparam-name param-valueWLS1.com:port|WLS2.com:port param-value Where WLS1.com and WLS2.com are the host names of servers in the cluster, and port is a port where the host is listening for HTTP requests. If you are using SSL between the plug-in and WebLogic Server, set the port number to the SSL listen port see Configuring the Listen Port and set the SecureProxy parameter to ON. SecureProxy init-param param-nameSecureProxyparam-name param-valueParameterValueparam-value init-param Valid values are ON and OFF. If you are using SSL between the plug-in and WebLogic Server, set the port number to the SSL listen port see Configuring the Listen Port and set the SecureProxy parameter to ON. DebugConfigInfo init-param param-nameDebugConfigInfoparam-name param-valueParameterValueparam-value init-param Valid values are ON and OFF. If set to ON, you can query the HttpClusterServlet for debugging information by adding a request parameter of ?__WebLogicBridgeConfig to any request. Note: There are two underscore _ characters after the ?. For security reasons, it is recommended that you set the DebugConfigInfo parameter to OFF in a production environment. ConnectRetrySecs Interval in seconds that the servlet will sleep between attempts to connect to a server instance. Assign a value less than ConnectTimeoutSecs. The number of connection attempts the servlet makes before returning an HTTP 503Service Unavailable response to the client is ConnectTimeoutSecs divided by ConnectRetrySecs. Syntax: init-param param-nameConnectRetrySecsparam-name param-valueParameterValueparam-value init-param ConnectTimeoutSecs Maximum time in seconds that the servlet will attempt to connect to a server instance. Assign a value greater than ConnectRetrySecs. If ConnectTimeoutSecs expires before a successful connection, an HTTP 503Service Unavailable response is sent to the client. Syntax: init-param param-nameConnectTimeoutSecsparam-name param-valueParameterValueparam-value init-param 10-16 Using Clusters for Oracle WebLogic Server PathTrim String trimmed by the plug-in from the beginning of the original URL, before the request is forwarded to the cluster. Syntax: init-param param-namePathTrimparam-name param-valueParameterValueparam-value init-param Example: If the URL http:myWeb.server.comweblogicfoo is passed to the plug-in for parsing and if PathTrim has been set to weblogic the URL forwarded to WebLogic Server is: http:myWeb.server.com:7001foo TrimExt The file extension to be trimmed from the end of the URL. Syntax: init-param param-nameTrimExtparam-name param-valueParameterValueparam-value init-param Table 10–1 Cont. Proxy Servlet Deployment Parameter Parameter Usage Setting up WebLogic Clusters 10-17

10.2.9.1.4 Accessing Applications Via the Proxy Server Ensure that applications clients will