This document provides steps to configure Apache Web Server to process JSPs and Java Servlets in Tomcat and return the results to the user. It requires downloading mod_jk.so for Apache and creating a worker.properties file in Tomcat's conf/jk folder to define the connection between Apache and Tomcat using AJP.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
36 views2 pages
How To Connect Apache Tomcat To Apache Web Server
This document provides steps to configure Apache Web Server to process JSPs and Java Servlets in Tomcat and return the results to the user. It requires downloading mod_jk.so for Apache and creating a worker.properties file in Tomcat's conf/jk folder to define the connection between Apache and Tomcat using AJP.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
How to connect apache Tomcat to Apache Web Server
Author: Mohamed M. El-Kalioby
Research Assistant Bioinformatics group, Nile University E-mail: [email protected] Purpose of document: How to configure Apache Web Server to process JSPs and Java Servlets in Tomcat and return the results to the user? Notes: This guide is useful if both the apache and tomcat are running on the same machine Requirements: Apache HTTP Server 2.2.0 Apache Tomcat 6.0.18 Steps: 1. Download mod_jk.so from Apache website (save in /usr/lib/apache2) 2. Create worker.properties (in TOM_HOME/conf/jk) # Define 1 real worker using ajp13 worker.list=ajp13 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009
3. Add this to tomcats server.xml (before </Engine>) <Listener className="org.apache.jk.config.ApacheConfig" modJk="/usr/lib64/apache2/mod_jk.so"/> Restart tomcat 4. In apache HTTP server, Add Include for the produced conf in Tomcat_HOME/conf/auto 5. Copy the part for the virtual configuration from the generate file to virtual hosting configuration in apache HTTP Server. enjoy