You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by G�nther Mittermayer <g_...@hotmail.com> on 2002/12/12 16:40:47 UTC

Tomcat 3.2.1 + Apache 1.3 won�t work..

Hi all,

I´ve been trying to set Tomcat and Apache to work together for some time, 
and after a couple of silly errors I got to a point where things seem to 
work, but Tomcat won't be called by Apache if I try to access a .jsp file..

I set up Apache to have two virtual hosts refering to two different ports 
(8080 and 8081) which point to two different workers.  Static pages would be 
served by Apache.

Does anyone see anything wrong I don't?
Any help appreciated

Thanks a lot :)

-----------------------
Here are the lines in httpd.conf that should do that.

LoadModule jk_module modules/mod_jk.dll
#I commented out
#AddModule mod_jk.c

JkWorkersFile conf/workers.properties
JkLogFile  logs/mod_jk.log
JkLogLevel info

<VirtualHost 141.19.93.41:8081>
	DocumentRoot /htdocs
	ServerName http://ds41.dsp.fh-mannheim.de
	JkMount /*.jsp worker_ajp13_1
</VirtualHost>

<VirtualHost 141.19.93.41:8080>
	DocumentRoot /htdocs
	ServerName http://ds41.dsp.fh-mannheim.de
	JkMount /*.jsp worker_ajp13_2
</VirtualHost>

----------------------
my workers.properties file settings are here:

worker.list=ajp12, worker_13_1, worker_13_2

#ajp12 worker definition
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12

# **** First ajp13 port definition ***
worker.worker_ajp13_1.port=11005
worker.worker_ajp13_1.host=localhost
worker.worker_ajp13_1.type=ajp13

# **** Second ajp13 port definition ***
worker.worker_ajp13_2.port=11009
worker.worker_ajp13_2.host=localhost
worker.worker_ajp13_2.type=ajp13

-------------------------
and my server.xml settings are here:

<!-- Apache AJP12 support. This is also used to shut down tomcat.-->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
    <Parameter name="handler"      
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
    <Parameter name="port" value="8007"/>
</Connector>


  <!--******** First AJP13 to listen to other ports *****-->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
      <Parameter name="handler"    
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
      <Parameter name="port" value="11005"/>
</Connector>

<!--******** second AJP13 to listen to other ports *****-->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
     <Parameter name="handler"      
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
     <Parameter name="port" value="11009"/>
</Connector>

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>