TomcatConnectors

HomePage | RecentChanges | Preferences

Adding a second Tomcat instance to an existing Apache-Tomcat config

worker.ajp13inf.port=8109
worker.ajp13inf.host=localhost
worker.ajp13inf.type=ajp13

worker.list=ajp13, ajp13inf

  <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
            modJk="/path/to/apache/modules/mod_jk.so" 
            workersConfig="/path/to/apache/conf/workers.properties" 
            jkLog="/path/to/tomcat2/logs/mod_jk.log"
            jkDebug="info" 
            jkWorker="ajp13inf"/>
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8109 -->
     <Connector port="8109" 
               enableLookups="false" redirectPort="8073" debug="0"
               protocol="AJP/1.3" />

<IfModule !mod_jk.c>
  LoadModule jk_module /path/to/apache/modules/mod_jk.so
</IfModule>
JkWorkersFile /path/to/apache/conf/workers.properties
Include /path/to/tomcat/conf/auto/mod_jk.conf
Include /path/to/tomcat2/conf/auto/mod_jk.conf

Alias /newapp "/path/to/tomcat2/webapps/newapp"
<Directory "/path/to/tomcat2/webapps/newapp">
 SSLOptions +StdEnvVars +ExportCertData
 Options Indexes FollowSymLinks
</Directory>
JkMount /newapp/* ajp13inf
<Location "/newapp/WEB-INF/">
 AllowOverride None
 Deny from all
</Location>

References


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited October 14, 2005 5:24 pm by WendySmoak (diff)
Search: