apt-get install apache2 apache2-common apache2-doc apache2-mpm-prefork
apt-get install tomcat4 libapache2-mod-jk2 libtomcat4-java libservlet2.3-java
vi /etc/bash.bashrc
export JAVA_HOME="xxx"
vi /etc/apache2/apache2.conf
SetHandler server-status
Order deny,allow
# Deny from all
Allow from all
SetHandler server-info
Order deny,allow
# Deny from all
Allow from all
cp /etc/apache2/mods-available/info.load /etc/apache2/mods-enabled/
create workers2.properties file
vi /etc/apache2/workers2.properties
--
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
[uri:/shibboleth/*]
info=Shibboleth
[uri:/examples/*]
info=A set of JSP examples for testing
--
edit jk2.conf file
------------------
vi /etc/apache2/mods-enabled/jk2.conf
uncomment 'JkSet config.file /etc/apache2/workers2.properties'
/etc/init.d/tomcat4 stop
/etc/init.d/apache2 stop
/etc/init.d/tomcat4 start
/etc/init.d/apache2 start
apt-get install tomcat4 libapache2-mod-jk2 libtomcat4-java libservlet2.3-java
vi /etc/bash.bashrc
export JAVA_HOME="xxx"
vi /etc/apache2/apache2.conf
SetHandler server-status
Order deny,allow
# Deny from all
Allow from all
SetHandler server-info
Order deny,allow
# Deny from all
Allow from all
cp /etc/apache2/mods-available/info.load /etc/apache2/mods-enabled/
create workers2.properties file
vi /etc/apache2/workers2.properties
--
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
[uri:/shibboleth/*]
info=Shibboleth
[uri:/examples/*]
info=A set of JSP examples for testing
--
edit jk2.conf file
------------------
vi /etc/apache2/mods-enabled/jk2.conf
uncomment 'JkSet config.file /etc/apache2/workers2.properties'
/etc/init.d/tomcat4 stop
/etc/init.d/apache2 stop
/etc/init.d/tomcat4 start
/etc/init.d/apache2 start