tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: Problem forward HTTP / Soap request using mod_jk
Date Tue, 03 Nov 2009 18:56:02 GMT
On 03.11.2009 19:35, breako wrote:
> 
> Hi,
> I have two tomcat servers and I can make them talk to each other using soap
> / http no problem.
> 
> However, when I put Apache infront of one my tomcat servers and set it up to
> forward http requests to the tomcat server it doesn't get any requests.
> 
> I am using the mod_jk to achieve the forwarding. I have tested other types
> of http forwarding, and they are all ok. 
> 
> So I am confident, I have my workers.properties, ajp ports etc set up ok.
> 
> I am getting no error messages in my mod_jk logfile.
> 
> I wonder can mod_jk only forward only certain types of http requests?
> 
> Any ideas?
> 
> Apache Http Server: Apache/2.0.47
> Tomcat Version: Tomcat/5.5.12
> 
> I have to use these versions for the project I am working on.
> 
> thanks.
> 
> httpd.conf
> 
> ...
> 
> # Load the jk module.
> LoadModule jk_module modules/mod_jk.so
> 
> # Specify the workers.properties file location
> # This is where the tomcat instances are defined
> JkWorkersFile conf/workers.properties
> JkLogFile     logs/mod_jk.log
> JkLogLevel    error
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkRequestLogFormat "%B %H %r %s %w %V %T"
> 
> # Set up the URLs for request forwarding.
> JkMount /HelloWorld/* worker2
> JkMount /* worker2
> JkMount /docy worker2
> 
> Workers.properties
> 
> ...
> # Define 1 real worker using ajp13
> worker.list=worker2
> 
> # Set properties for worker2 (ajp13)
> worker.worker2.type=ajp13
> worker.worker2.host=localhost
> worker.worker2.port=23009
> worker.worker2.lbfactor=1

The only limitation I'm aware of is when using huge request headers.
There's a default 8KB Limit for all request headers together.

Another thing: if you have VirtualHost elements in your Apache
configuration, you have to either put the JkMount dircetives into the
VirtualHost that handles your request, or add "JkMountCopy On" to it, or
add "JkMountCopy All" to the global server.

If you can easily reproduce on a test system, set JkLogLevel to "trace",
do a single request and make the jk log file available.

Regards,

Rainer

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


Mime
View raw message