Tomcat, Googling :
mod-jk; apache 2. , apache tomcat.
apt-get install libapache2-mod-jk
, . /etc/apache 2/apache2.conf
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
employee.properties, , tomcat. tomcat java (8080 ), .
workers.tomcat_home=/usr/local/tomcat/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=worker1
worker.default.port=8080
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
/etc/apache 2/apache2.conf tomcat, . ( ) (.. TestContext apache TestContext tomcat. , apache (awesome) module mod_rewrite.)
JkMount /TestContext worker1
JkMount /TestContext/* worker1
JkMount /AnotherContext worker1
JkMount /AnotherContext/* worker1
apache (/etc/init.d/apache2). , apache (iee http://myserver/TestContext), tomcat.