Integrating Apache 2.0.54 with Tomcat 5.5.9 on Fedora Core 4
Log-in
|
Register
|
Tomcat
:
Integrating Apache 2.0.54 with Tomcat 5.5.9 on Fedora Core 4
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
Integrating Apache 2.0.54 with Tomcat 5.5.9 on Fedora Core 4
Hide Line numbers
1: 1 Integrating Apache 2.0.54 with Tomcat 5.5.9 on Fedora Core 4 2: 3: *Table of Contents* 4: 5: {toc:initlevel=2|maxlevel=6|numbered=false} 6: 7: 1.1 Overview 8: 9: This technical note covers integrating Apache 2.0.54 with Tomcat 5.5.9 on Fedora Core 4. 10: 11: 1.1 Steps 12: 13: See [http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html]. More detail is needed so here it is. 14: 15: # as root run ’yum list *mod_jk*’ and you should see to packages. 16: # 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/ 17: # 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. 18: # Copy the newly created mod_jk.conf to /etc/httpd/conf.d/ (You now do not need to edit /etc/httpd/conf/httpd.conf) 19: # Copy ${YOUR_TOMCAT_HOME}/conf/workers.properties to /etc/httpd/conf/ 20: # Back out your changes to ${YOUR_TOMCAT_HOME}/conf/server.xml 21: # Edit ${YOUR_TOMCAT_HOME}/conf/auto/mod_jk.conf to reflect the following: 22: {code} 23: ########## Auto generated on Thu Sep 22 18:58:31 CDT 2005########## 24: 25: <IfModule !mod_jk.c> 26: LoadModule jk_module "/etc/httpd/modules/mod_jk.so" 27: </IfModule> 28: 29: 30: #<VirtualHost localhost> 31: # ServerName localhost 32: 33: # Where to find workers.properties 34: JkWorkersFile /etc/httpd/conf/workers.properties 35: 36: # Where to put jk logs 37: JkLogFile /var/log/httpd/mod_jk.log 38: 39: # Set the jk log level [debug/error/info] 40: JkLogLevel info 41: 42: # Select the log format 43: JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " 44: 45: JkMount /xwiki ajp13w 46: JkMount /xwiki/* ajp13w 47: 48: JkMount /admin ajp13w 49: JkMount /admin/* ajp13w 50: 51: JkMount /servlets-examples ajp13w 52: JkMount /servlets-examples/* ajp13w 53: 54: JkMount /webdav ajp13w 55: JkMount /webdav/* ajp13w 56: 57: JkMount /balancer ajp13w 58: JkMount /balancer/* ajp13w 59: 60: JkMount /jsp-examples ajp13w 61: JkMount /jsp-examples/* ajp13w 62: 63: JkMount /host-manager ajp13w 64: JkMount /host-manager/* ajp13w 65: 66: JkMount /tomcat-docs ajp13w 67: JkMount /tomcat-docs/* ajp13w 68: 69: JkMount /manager ajp13w 70: JkMount /manager/* ajp13w 71: #</VirtualHost> 72: 73: {code} 74: 75: # Restart Apache and Tomcat (order is not important) 76: ## as root use ’service httpd restart’ 77: ## as root use ’${YOUR_TOMCAT_HOME}/bin/shutdown.sh’, and then ’${YOUR_TOMCAT_HOME}/bin/startup.sh’ 78: # 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. 79: # Verify that the most current log in ${YOUR_TOMCAT_HOME}/logs has no errors introduced 80: # Verify your sites that were reachable as http://your.domain:8080/yourapp/ is now reachable as http://your.domain/yourapp/ 81: 82:
Search
Quick Links
Wiki Dashboard
Document Index
Blog
Sandbox
What's New
Calendar
Photo Albums
Tags
HarperTECH
System Werks
Coonich
Technology
Windows
Tomcat
Web Home
Apache Integration