Straight from the doc available at
http://tomcat.apache.org/connectors-doc/config/apache.html
forwardAll=true
in your httpd.conf forwards ALL requests to tomcat
JkUnMount takes precedence over JkMount directives, meaning that the JK will
first look for unmount and then for mount directives. The following example
will block all .gif files.
# do not send requests ending with .gif to worker1
JkUnMount /*.gif worker1
# The .gif files will not be mounted cause JkUnMount takes
# precedence over JkMount directive
JkMount /servlet/*.gif worker1so in effect your JkUnmount statement is
blocking access to the parameter following JkUnmount commandMartin-
----- Original Message -----
From: "Michael Andreas Omerou" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <users@tomcat.apache.org>; "'Martin Gainty'"
<[EMAIL PROTECTED]>
Sent: Sunday, December 11, 2005 3:57 AM
Subject: RE: Problem with mod_jk Connector
Hi Martin,
Below is my entire workers.properties file:
workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat
workers.java_home=/usr/local/j2sdk
ps=/
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.lbfactor=50
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300
I have set JKLogLevel to info but although the problem occurs nothing goes
there. In fact even for requests forwarded from Apache to Tomcat there
are
no entries in mod_jk.log.
Regarding forwardAll I am not aware of this option, where does it go?
Please note that eventually I need to have the JKUnmount in my httpd.conf.
Thanks,
Michael
-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 10 December 2005 23:02
To: [EMAIL PROTECTED]
Cc: 'Tomcat Users List'
Subject: Re: Problem with mod_jk Connector
what this says is that all requests goto ajp13 worker I will
need to see worker.properties file and the value of forwardAll
set JkLogLevel info
Martin-
----- Original Message -----
From: "Michael Andreas Omerou" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <users@tomcat.apache.org>; "'Martin Gainty'"
<[EMAIL PROTECTED]>
Sent: Saturday, December 10, 2005 2:33 PM
Subject: RE: Problem with mod_jk Connector
Hi Martin,
Below is the extract from my httpd.conf:
LoadModule jk_module
modules/mod_jk-1.2.15-solaris8-sparc-apache-1.3.33.so
JkWorkersFile /usr/local/etc/httpd/conf/workers.properties
JkLogFile /usr/local/etc/httpd/logs/mod_jk.log
JkLogLevel error
JkMount /* ajp13
The idea is that all requests (jsp, servlets, images, etc.)
are forwarded
from Apache to Tomcat and this works fine with mod_jk
version 1.2.5. When
I
upgraded to 1.2.15 though the forwards still work but only
if there are no
URL parameters. This is what I cannot understand: if there are URL
parameters then it looks as if Apache tried to serve the
request instead
of
forwarding to Tomcat.
Any help will be much appreciated.
Thanks in advance,
Michael
-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 10 December 2005 17:50
To: [EMAIL PROTECTED]
Cc: users@tomcat.apache.org
Subject: Re: Problem with mod_jk Connector
Michael-
in your httpd.conf we need to see JKMount statement for
handling *.jsp pages see
http://tomcat.apache.org/tomcat-4.1-doc/config/jk.html
e.g.
For example the following directives will send all requests
ending in .jsp or with /servlet as the second path componenet
to the "ajp13" worker, but jsp requests to files located in
/otherworker will go to "remoteworker".
JkMount /*.jsp ajp13
JkMount /*/servlet/ ajp13
JkMount /otherworker/*.jsp remoteworker
Martin------ Original Message -----
From: "Michael Andreas Omerou" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Saturday, December 10, 2005 10:25 AM
Subject: Problem with mod_jk Connector
Hello,
I have a Solaris server where I use Apache and Tomcat and I
connect them
using mod_jk. So far I was using mod_jk 1.2.5 and all
requests to Apache
were forwarded to Tomcat. Then, I needed to host some
things under Apache
(basically web statistics software, webmail, etc.). So I
thought of using
JkUnmount to do this.
JkUnmoun is not supported from mod_jk 1.2.5 so I installed
the latest
version 1.2.15. Now JkUnmount works but I have another problem.
If a url which is meant to be sent to Tomcat contains URL
parameters, e.g.
something like ...../hotelDetails.jsp?hotelCode=AMY, then
the request is
not
forwarded from Apache/Mod_jk.
I checked everywhere for solutions to this but could not find any.
Your help willl be much appreciated.
Rgds,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]