First, the document 1, Apache_2.0.43-Win32-x86-NO_SSL.MSI - Apache2.0.43Web server; 2, J2SDK-1_4_1_02-windows-i586.exe --jdk1.4.1; 3, mod_jk-2.0.43. DLL - Apache and Tomcat Combine the required link files; 4, Tomcat-4.1.18.exe - Application Server Tomcat4.1.18; 5, W2Ksp3.exe - JDK1.4 must be Win2000 patch; 6, jdbcmsql.rar - Decompress the JDBC driver package for SQL Server; Second, installation directory note: If you don't want to modify the configuration file again, press the following directory to install, pay attention to case.
1, install WIN2000 patch; 2. Install J2SDK-1_4_1_02-windows-i586.exe to D: /J2SDK1.4.1; 3, install Apache to D: / will form directory D: / Apache24, install Tomcat to D: / Tomcat4; Third, the specific configuration Note: First stop the service, you can start configuring, my web application directory is D: / webApp configuration steps: First put Tomcat and Apache, then configure the Tomcat connection pool, and finally test 1 with JSP interface 1 In the CONF directory of the Tomcat4 installation directory, create a directory JK, there are two files, the contents of the file are as follows, can modify according to the directory installed: A, MOD_JK.CONF # # The folload line instructions apache to load the jk Module # loadModule JK_Module Modules / Mod_jk-2.0.43.dlljkWorkersFile "D: /tomcat4/conf/jk/workers.properties" jklogfile "d: /tomcat4/logs/mod_jk.log" # # log level to be buy by mod_jk # JKLoglevel Error # # root context mounts for tomcat # jkmount /*.jsp Ajp13 jkmount / servlet / * ajp13 ################################################################################################################################################################################################################################# ################################################################################################################################################################################################################################################################### ################################ # # # # # # # Line makes apache aware of the location of the / annai context # may not have necessary alias / portning "d: / webapp" options indexes FollowSymlinks # # The Following Line Mounts All JSP Files and TH e / servlet / uri to tomcat # JkMount /servlet/*.jsp ajp13 # # The following line prohibits users from directly accessing WEB-INF # #AllowOverride None #deny from all # # Use Directory too. On Windows, Location does not work unless case matches # #AllowOverride None #deny from all # # The following line prohibits users from directly accessing META-INF # #AllowOverride None #deny from all # # Use Directory too. On Windows, Location doesn '
T Work UnsS Case Matches # #allowoverride none #deny from all ############################################################################################################################################################################################################################################################################### ########### # auto configuration for the / query context ends. ############################################################################################################################################################################################################################################################################## ################################################################################################################################################################################################################################################################################## . # installed tomcat This is where you have your conf, webapps and lib # directories # workers.tomcat_home = D:.. / Tomcat4 # # workers.java_home should point to your Java installation Normally # you should have a bin and lib directories beneath It. # worker.java_home = d: /j2sdk1.4.1# # You Should configure your environment Slash ... ps = / on nt and / on UNIX # and maybe something diffreent elsewhere. # ps = / # ps = / # # # # # # # # # # # # # ------ Advanced Mode -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ # # # ------ DEFAULT WORKET LIST ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ---------- # # The worker thing your plugins surser.list = ajp13 # # ------ Default Ajp13 Worker Definition ------ - # Defining a worker named ajp13 and of type ajp13 # Note That the name and the type do not have to match. # Worker.ajp13.port = 8009 worker.ajp13.host = localhost worker.ajp13.type = ajp13 # # Specifies the load balance factory gen commercial. # Note: # ----> lbfactor must be> 0 # ----> low lbfactor means less work done by the worker. Worker.ajp13.lbfactor = 1 # Specify the size of the open connection cache. # worker.ajp13.cachesize # # ------ DEFAULT LOAD BALANCER WORKER DEFINITION # # The loadbalancer (type lb) workers perform wighted round-robin # load balancing with sticky Sessions. # Note: # ---->
If a worker dies, the load balancer will check its state # once in a while. Until then all work is redirected to peer # workers. Worker.loadbalancer.type = lb worker.loadbalancer.balanced_workers = ajp132) the documents mod_jk-2.0. 43.DLL Copy to the moudles directory of the Apache installation directory; JSP plus include "D: / Tomcat4/conf/jk/mod_jk.conf" after httpd.conf; the following is configured: 4) There is Server.xml in the CONF directory of the Tomcat installation directory, in Server.xml Host> The following code is added:
MaxWait name>