apache tomcat 整合配置

环境:
CentOS release 5 (Final)
httpd-2.2.10.tar.gz
apache-tomcat-5.5.17.tar.gz
tomcat-connectors-1.2.27-src.tar.tar

httpd.conf
...
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "conf/workers.properties"
JkLogFile "/hyw/logs/jklog/mod_jk.log"
JkLogLevel info
...
Include conf/vhosts.conf
...


vhosts.conf
<VirtualHost ip:80>
    ...
    Include conf/jkmount.conf
</VirtualHost>


jkmount.conf
JkMount /servlet/* worker1
JkMount /jsp/* worker1
JkMount /*.jsp worker1
JkMount /*.do worker1


workers.properties
ps=/
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
worker.worker1.socket_timeout=600
worker.worker1.socket_keepalive=True


server.xml
...
<Connector port="8009" 
       maxThreads="1000" minSpareThreads="25" maxSpareThreads="75" 
       connectionTimeout="60000" disableUploadTimeout="true" 
       enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
...
<Engine name="Catalina" defaultHost="test.hyw.com" jvmRoute="worker1">
...



你可能感兴趣的:(java,apache,tomcat,centos,socket)