tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Help with mod_jk and Apache 2.2
Date Tue, 14 Apr 2009 13:58:01 GMT
Security Management wrote:
> So, I have Tomcat 5.5, apache 2.2 on a linux 32 bit machine.  Tomcat and my
> webapp work great, I just can't seem to get the connector working.  Sorry if
> this is a basic question, but even with the debugging on I can't see what is
> wrong.  I have listed 3 files here, my httpd config, my workers.properties,
> and my uri mappings file.  I would appreciate any advice.  Here is the error
> I'm getting:
> 
> [Tue Apr 14 09:20:34 2009] [565:3085756960] [debug] jk_child_init::mod_jk.c
> (3068): Initialized mod_jk/1.2.28
> [Tue Apr 14 09:20:43 2009] [558:3085756960] [debug] jk_translate::mod_jk.c
> (3419): missing uri map for sirrus.smc:/appsuite/
> [Tue Apr 14 09:20:43 2009] [558:3085756960] [debug]
> jk_map_to_storage::mod_jk.c (3579): missing uri map for sirrus.smc/appsuite/
> 
> I have tried changing the hostname from localhost to sirrus.smc, but with no
> luck.
> 
> Here is the mod_jk config:
> 
> LoadModule jk_module modules/mod_jk.so
> 
> JkWorkersFile /etc/httpd/conf.d/workers.properties
> JkMountFile /etc/httpd/conf.d/uriworkermap.properties
> JkLogFile /var/log/httpd/mod_jk.log
> JkLogLevel debug
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
> JkShmFile /var/log/httpd/JkShmFile
> 
> 
> Here is the workers.properties:
> 
> workers.tomcat_home=/var/www/apache-tomcat-5.5.27/
> 
> # workers.java_home should point to your Java installation. Normally
> # you should have a bin and lib directories beneath it.
> #
> workers.java_home=/usr/java/latest
> 
> # You should configure your environment slash... ps=\ on NT and / on UNIX
> # and maybe something different elsewhere.
> #
> ps=/
> 
> # The workers that your plugins should create and work with
> #
> worker.list=worker1
> 
> #------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
> #---------------------------------------------------------------------
> # Defining a worker named ajp13 and of type ajp13
> # Note that the name and the type do not have to match.
> #
> worker.worker1.type=ajp13
> worker.worker1.host=localhost

here you seem to be missing a line
 > worker.worker1.port=xxxx   (xxxx = the port on which your Tomcat AJP 
connector is listening)

> 
> Here is the JkMountFile:
> 
> /appsuite=worker1
add
/appsuite/* = worker1

explanation : "/appsuite" will match just that, "/appsuite". It is not 
to be interpreted as "/appsuite and anything below it".
To say "/appsuite and anything below it", you need the two lines.
You could also use "/appsuite*", but then it would also match 
"/appsuiteandanythingelse", which is probably not what you want.

> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message