You have to decide: do I want all of my configuration in httpd.conf, or do I
want my configuration in worker2.properties?
If in httpd.conf:
1. LoadModule jk2_module modules/mod_jk2.so in httpd.conf
2. Use JkSet and JkUriSet to direct specific URLs to Tomcat
If in worker2.properties:
1. LoadModule jk2_module modules/mod_jk2.so in httpd.conf
2. Use something like this as worker2.properties:
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1
# define the worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8019
That would map Tomcat's /examples over a normal socket. A minimum
worker2.properties file for /examples (from the JK2 documentation at
jakarta.apache.org):
# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp
John
-----Original Message-----
From: Rafia Tapia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 6:49 PM
To: Tomcat Users List
Subject: Re: mod_jk2, workers2.properties and httpd.conf
ok I know my module is not getting loaded. I include the [uri:] component in
<IfModule mod_jk2.c> and the server came up without any error but obviously
I can't see tomcat stuff. Any suggestion why my module is not getting load
by apache. I have put the module in /usr/lib/httpd/modules directory.
----- Original Message -----
From: "Rafia Tapia" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 6:28 PM
Subject: mod_jk2, workers2.properties and httpd.conf
> Hi all
> I have been reading jk2 documentation but some stuff is not clear to
> me. basically my question is what configuration goes in httpd.conf and
> what
goes
> in workers.properties. When i include the <uri:> component in the
httpd.conf
> file, it complains that either I have missplled or the module is not
loaded.
> I have include the "LoadModule jk2_module modules/mod_jk2.so" line in
> the httpd.conf file. Is there anyway I can find out if the server is
> loading this module at run time.
>
> Any help will be appreciated
>
> Rafia
>
>
> --
> 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]>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>