I have the following in my Apache httpd.conf:

# Static files in the webapp are served by apache
Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32
# All servlets goes to worker1
JkMount /*/servlet/* worker1

The alias works because Apache serves my static files just fine.



Here is my workers.properties:

workers.apache_log=d:/apache_43/apache2/logs/
workers.tomcat_home=y:/tomcat4.0.4
workers.java_home=d:/jdk1.3/
ps=/

# Define worker, ajp13
worker.list=worker1

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

Jim



-----Original Message-----
From: Milt Epstein [mailto:mepstein@;uiuc.edu]
Sent: Tuesday, October 22, 2002 7:06 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Apache/2 and Tomcat/4 not talking

On Tue, 22 Oct 2002, Jim Urban wrote:

> I have spent the past two days trying to get Apache/2 to forward servlet
> requests to Tomcat.  Here are the particulars:
>
> Java 1.3.0
> Win 2K SP3
> Tomcat 4.0.4
> Apache/2 0.43
> AJP13
> SSL
>
> Mod_jk.conf
> ########## Auto generated on Tue Oct 22 12:01:16 CDT 2002##########
>
> <IfModule !mod_jk.c>
>   LoadModule jk_module modules/mod_jk.dll
> </IfModule>
>
> JkWorkersFile "y:/Tomcat4.0.4/conf/jk/workers.properties"
> JkLogFile "y:/Tomcat4.0.4/logs/mod_jk.log"
>
> JkLogLevel debug
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
[ ... ]

You don't have any JkMount directives.  JkMount directives are of the
form:

JkMount url-pattern worker-name

They tell Apache what URL's (based on a match of the URL pattern) to
forward to Tomcat.  worker-name should be defined in
workers.properties with a number of:

worker.worker-name.property=value

where property is { host, port, type }.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED] 


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to