Integrating Apache 2.0.54 with Tomcat 5.5.9 on Fedora Core 4

Overview

This technical note covers integrating Apache 2.0.54 with Tomcat 5.5.9 on Fedora Core 4.

Steps

See http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. More detail is needed so here it is.

  1. as root run 'yum list mod_jk' and you should see to packages.
  2. as root run 'yum install package1 package2'. Substituing package1 and package2 for the real package names. This action will install mod_jk. mod_jk.so will now be in /etc/httpd/modules/
  3. In the section 'Using Tomcat auto-configure' in http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html configure the tomcat ${YOUR_TOMCAT_HOME}/conf/server.xml first. Then restart tomcat and this will create ${YOUR_TOMCAT_HOME}/conf/auto/mod_jk.conf and a ${YOUR_TOMCAT_HOME}/conf/jk/ . This is different than documented in the apache-tomcat web page.
  4. Copy the newly created mod_jk.conf to /etc/httpd/conf.d/ (You now do not need to edit /etc/httpd/conf/httpd.conf)
  5. Copy ${YOUR_TOMCAT_HOME}/conf/workers.properties to /etc/httpd/conf/
  6. Back out your changes to ${YOUR_TOMCAT_HOME}/conf/server.xml
  7. Edit ${YOUR_TOMCAT_HOME}/conf/auto/mod_jk.conf to reflect the following:
<IfModule !mod_jk.c>
  LoadModule jk_module "/etc/httpd/modules/mod_jk.so"
</IfModule>

#<VirtualHost localhost>

  1. ServerName localhost
  2. Where to find workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties
  1. Where to put jk logs
JkLogFile /var/log/httpd/mod_jk.log
  1. Set the jk log level [debug/error/info]
JkLogLevel info
  1. Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkMount /xwiki ajp13w JkMount /xwiki/* ajp13w

JkMount /admin ajp13w JkMount /admin/* ajp13w

JkMount /servlets-examples ajp13w JkMount /servlets-examples/* ajp13w

JkMount /webdav ajp13w JkMount /webdav/* ajp13w

JkMount /balancer ajp13w JkMount /balancer/* ajp13w

JkMount /jsp-examples ajp13w JkMount /jsp-examples/* ajp13w

JkMount /host-manager ajp13w JkMount /host-manager/* ajp13w

JkMount /tomcat-docs ajp13w JkMount /tomcat-docs/* ajp13w

JkMount /manager ajp13w JkMount /manager/* ajp13w #</VirtualHost>

  1. Restart Apache and Tomcat (order is not important)
  2. Verify there are no errors from the system logs, specifically - apache error logs. This will confirm that the mod_jk did not generate errors on Apache start.
  3. Verify that the most current log in ${YOUR_TOMCAT_HOME}/logs has no errors introduced
  4. Verify your sites that were reachable as http://your.domain:8080/yourapp/ is now reachable as http://your.domain/yourapp/
Version 1.5 last modified by Administrator on 23/03/2006 at 23:05

Comments 0

No comments for this document

Attachments 0

No attachments for this document
 
KnowledgeBase
Books
SystemWerks
Notes
Liferay
CheatSheets
Apache
Tomcat
MyNotes
MultiMedia
Minix
Integrators
OpenSource
SunAppServer
Languages
HowTo
VCS
SwiftShopper
SugarCRM
Skype
IBM
PocketPC
SSH
Speech
Windows
Software Development
BusinessModels
Oracle
MySQL
Databases
Support
NACHA
Networking
Amiga
Virtualization
WebsiteDesign
Photography
Robotics
Cryptography
LAMP
LinuxBIOS
Management
Security
Bizarre
Apple
OpenOffice
Audio
USBKeys
OnlineStorage
Games
Aeronautics
Military
Employment
Emulation
Freelancing
Video
Electronics

Creator: Administrator on 2005/10/02 22:48
This wiki is licensed under a Creative Commons license
1.1-milestone-3.3909