Yes.  Do you want Tomcat to generate the mod_jk.conf file or not?  If you
do, you need the Listener element.  Then restart Tomcat, and take the
mod_jk.conf file that is generated and copy it to the Apache box.  The
Listener element doesn't care which host has which service...all it does is
generate mod_jk.conf, and mod_jk.conf doesn't care if Tomcat is on a
different box, it only describes the URL mappings for Apache.  The place
where it makes a difference on which host is where is workers.properties.
So it looks like this:

httpd.conf -> workers.properties -> server.xml

Httpd.conf determines if mod_jk should be called, if mod_jk is called, it
uses workers.properties to find Tomcat (IP address, port number), Tomcat
uses server.xml to determine which content should be served.

If you want to do the mod_jk.conf by hand, you do not need the Listener
element at all.

John


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 3:35 AM
> To: [EMAIL PROTECTED]
> Subject: Listener directive in Host conrtainer ???
> 
> 
> Hi All.
> My last question tonight...
> In the johnturner.com/howto write up, John said "... in the Host
> container add the following Listener directive... )
> The only Host entry in CATALINA_HOME/conf/server.xml is for 
> defining the
> default virtual host :
> <Host name="localhost" debug="0" appBase="webApps" unpackWARs="true">
> 
> Soo I am not sure that this is where I should enter
> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> append="true" ...etc>
> because it will be on a different box ???
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to