Integrate Apache and Tomcat

Apache 2.0 and Tomcat 6.0

Shutdown Apache & Tomcat Server

httpd.conf

LoadModule

Add the following lines to httpd.conf (in conf directory of Apache base directory)

LoadModule proxy_module modules/mod_proxy.so

ProxyPass and ProxyPassReverse

For each application /myapp add the following two statements with myapp substituted

ProxyPass /myapp/ http://localhost:8081/myapp/ ProxyPassReverse /myapp/ http://localhost:8081/myapp/

Note: Replace localhost with the appropriate IP address or hostname of the server where Tomcat is installed.

Tomcat

server.xml

Add to Server.xml (in conf directory of Tomcat base directory)

Restart Tomcat Server and then Apache Server

See: https://sec1.woopra.com/docs/proxy-howto.html