Apache

xiaoxiao2021-03-06  114

The request of the 80-port is thrown into the JBoss test implementation environment Windows 2000 ServeraPache_2.0.50 Tomcat_4.1.30 JDK1.4

1. Get the acquisition address of MOD_JKMOD_JK (for Win32) corresponding to the system environment http://apache.oc1.mirrors.redwire.net/jakarta/tomcat-connectors/jk/binaries/win32/ Follow the list from the list of Apache Select download. Note: For Apache 1.3.29 and 2.0.49, you must pass the version of the MOD_JK version from http://apache.oc1.mirrors.redwire.net/jakarta/tomcat-connectors/jk2/binaries/win32/.

two. New workers.properties file In the apache_install_dir / conf directory, create new works.properties files, the content is as follows: # ----------------- Begin ------------------------------------------------------------------------------------------------------------------ ----------------------- # Tell mod_jk to use the load balancerWorker.list = lb # define the worker1worker.Worker1.Type = ajp13

#jboss_tomcat server IP address worker.worker1.host = 192.168.0.28

# Specify the port with the AJP13 (the same as the port specified in Tomcat) worker.worker1.port = 8009 worker.worker1.lbfactor = 1 # define the loading balancerWorker.lb.type = lbworker.lb . balanced_workers = worker1 # Specifies the previously defined worker # ----------------------- ------------

three. After configuring the Apache and mod_jk, after proper installation of Apache, change the obtained mod_jk's DLL file to mod_jk.dll and copy it to the Apache_install_dir / modules directory

Edit the apache_install_dir / conf / httpd.conf file, join the end of the file, as follows (Chinese Comment section can be deleted) # ------------------------- -begin ------------------ LoadModule JK_Module Modules / Mod_jk.dll jkworkersfile "c: /apache2/conf/workers.properties" # New Workers. Properties files JKLogfile "c: /apache2/logs/jk.log" # log file stock address jkloglevel normaljkmount / * lb # --------------- ------- End ---------------------

IV. Configure the Tomcat-Service.xml file of JBoss

In the JBoss_Tomcat_Install_dir / server / all / deploy directory, of course, you have a default that comes out of the original Connector and adds a new Connector, change it to the following (including annotated)

org.apache.coyote.tomcat4.coyoteconnector "port =" 80 "minprocessors =" 5 "maxprocessors = "75" enablelookups = "true" redirectport = "8443" acceptcount = "100" debug = "0" connectiontimeout = "- 1" UseriValidationHack = "false" disableuploadtimeout = "true" / ->

"org.apache.coyote.tomcat4.coyoteconnector" port = "8009" MINPROCESS = "5" MaxProcessors = "75" enableLookups = "true" redirectPort = "8443" acceptCount = "10" debug = "0" connectionTimeout = "20000" useURIValidationHack = "false" protocolHandlerClassName = "org.apache.jk.server.JkCoyoteHandler" / - > Note: The test process is used: Specify the connection .classname = "org.apache.catalina.conne Ctor.http.httpConnector "and AJP 1.3 Connector on Port 8009" org.apache.coyote.tomcat4.coyoteconnector "section 5. Test successfully launched Apache, Tomcat service, access http: // localhost, see Tomcat's startup page can prove configured success. To this access to Tomcat can be accessed by http: // localhost: 8080 / *** by http: // localhost / ***

转载请注明原文地址:https://www.9cbs.com/read-102502.html

New Post(0)