Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Integrate Tomcat 4.1 with Apache 2.0.43

Status
Not open for further replies.

sunnyjassal

Programmer
Feb 19, 2003
16
US
I am running Tomcat 4.1 on Apache 2.0.43 with JK2. Can
someone please send me an example of a working
jk2.properties and workers2.properties files for the above
configuration so that I can see the /examples
directory in the Tomcat directory on port 80 instead
of the default Tomcat port (i.e. 8080 on which I can
see it already).

your help will be greatly appreciated.
 
If you get an answer from someone, could you send it to me also via e-mail please. My address is: danielc@dlcsolutions.ca.tc

Thanks in advance.

Daniel C.
 
Hi.

Here is what works for me:


### jk2.properties ###
# Everything is remarked. An empty file would be enough

### httpd.conf ###
# Add the following lines:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll
Alias /examples/ "C:/tomcat/webapps/examples/"
# Remark all lines from previous jk versions if present

### workers2.properties ###
# For some reason I had to put the file in the apache conf
# directory instead of the tomcat conf directory #

### Start of workers2.properties ###
# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp
worker=ajp13:localhost:8009

[shm]
file=${serverRoot}/logs/shm.file
size=1048576

[status:status]
# Uri mapping
[uri:/jkstatus/*]
worker=status:status

### End of workers2.properties ###
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top