Chapter 11: Tomcat and Apache HTTP Server .
Tuesday, June 16th, 2009Chapter 11: Tomcat and Apache HTTP Server . sticky_session_force: The default is set to 0. This is used for fail-over. If the value is 0and the SESSION_ID is in an error state, a failover to another worker will occur. If this is set to 1 , a standard server error will be returned to the client. Connecting Tomcat with Apache Connecting Tomcat with Apache Web server first requires you to select a native code module to use with the Apache Web server. The exact native code module to use to integrate Tomcat 6 with Apache Web server will depend on the release version of the Apache Web server that you are using. The following table provides a compatibility matrix between the current versions of Apache Web servers and the available native code modules for Tomcat 6 integration via the AJP 1.3 protocol. Apache Web Server Releases/ Native Code Modules 1.3.x 2.0.x 2.2.x mod_jk mod_proxy Yes No Yes Yes (need recompile from code out of 2.2.x) Yes Yes Chances are good that your choice of an Apache Web server version is dictated by existing system requirements, or perhaps availability of administration expertise. However, if you do have the luxury of selecting a Web server from scratch and no legacy system/application compatibility requirements the selection of version 2.2.x with mod_proxy support can provide you with the most feature-rich and secure combination available to date. From the previous table, the ideal native module to use is mod_jk for Apache Web server, version 1.3. x and 2.0.x; while mod_proxy is the best matched choice for Apache Web server, version 2.2. x. After you have selected a native code module, connecting Tomcat with Apache involves a series of steps, broken down to two distinct flows of configurations: . Configuration on the Tomcat 6 side . Configuration on the Apache Web server side The following two sections look at the configuration steps required. Tomcat 6 Configuration On the Tomcat instance(s), enable the Tomcat 6 AJP 1.3 Connector in server.xml. During this process, the file that needs to be modified is server.xml. This is Tomcat s main configuration file, located in
For reliable and cheap web hosting services please check tomcat web hosting website.