Rob-

If you have 2 servlets e.g.you have two tomcat running, listning Ajp12 on 10001 
and 10002 ports:

Take a look at

/etc/httpd/conf/httpd.conf:
-----------------------------

LoadModule jk_module /etc/httpd/libexec/mod_jk.so

JkWorkersFile /etc/httpd/conf/workers.properties

Listen 8001
<VirtualHost _default_:8001>
  Port 8001
  DocumentRoot /home/httpd/virtual_hosts/8001/html/
  JkMount / 8001Worker
</VirtualHost>

Listen 8002
<VirtualHost _default_:8002>
  Port 8002
  DocumentRoot /home/httpd/virtual_hosts/8002/html/
  JkMount / 8002Worker
</VirtualHost>

/etc/httpd/conf/workers.properties
----------------------------------

worker.list=8001Worker, 8002Worker

worker.8001Worker.port=10001
worker.8001Worker.host=localhost
worker.8001Worker.type=ajp12
worker.8001Worker.lbfactor=1

worker.8002Worker.port=10002
worker.8002Worker.host=localhost
worker.8002Worker.type=ajp12
worker.8002Worker.lbfactor=1

In other words start with what works and change one line at a time
 
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.





> Hi,
> 
> I'm building a new development system.  I can access my applications 
> directly from my browser 0n port 8009, but not through Apache.  I'm have 
> j2sdk1.4.2_12 and apache-tomcat-4.1.32 installed.  The version of Apache 
> is 2.0.54 (from the FC4 distro).  I built the connector from the 
> tomcat-connectors-1.2.18-src, using the included directions. 
> 
> The workers.properties file:
> 
> worker.list=ajp13
> 
> worker.ajp13.host=localhost
> worker.ajp13.port=8009
> worker.ajp13.type=ajp13
> 
> The httpd.conf file:
> 
> 
> When I attempt to access the servlet via Apache, the page just keeps 
> loading forever (oodly enough, it doesn't even timeout).
> 
> Any ideas?
> 
> Thanks,
> Rob
> 
> 
> --
> 
> Rob Tanner
> Linfield College
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to