Wednesday, June 9, 2010

Apcache-Tomcat integration

Bellow are the steps for Apcache-Tomcat integration :
An AJP Connector is used for integration of Tomcat with Apache. The AJP connector will provide faster performance than proxied HTTP. AJP clustering is the most efficient from Tomcat perspective.
The native connectors supported with this Tomcat release are:
o JK Connector 1.2.x with any of the supported servers.

Configuring Tomcat
o Add the following Connector tag in the $CATALINAHOME/conf/server.xml file.


Configuring Apache
o Define the following properties in the $APACHE_HOME/conf/workers.properties file.
worker.list=ServicesPortal
worker.ServicesPortal.port=8009
worker.ServicesPortal.host=
worker.ServicesPortal.socket_keepalive=600000
worker.ServicesPortal.type=ajp13

o Add the following directives in “$APACHE_HOME/conf/httpd.conf.proxy” to configure mod_jk connector
LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile $APACHE_HOME/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

o Add the following directive in “$APACHE_HOME/conf/httpd.conf.proxy” to re-direct all the requests for Services Portal to Tomcat worker called ServicesPortal
JkMount /ServicesPortal/* ServicesPortal

o Add the following rewrite rule in $APACHE_HOME/conf/httpd.conf.proxy file.
RewriteRule ^/ServicesPortal/.* - [L,PT]

o Add the following directive in “$APACHE_HOME/conf/httpd.conf.proxy” to provide RSA authentication for Insite customer


                   AuthType      "SecurID"
                       require  valid-user


No comments:

Post a Comment