From: Pid <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: mod_jk garbled - how to change JK* directives for ProxyPass?
Date: Wed, 06 Sep 2006 16:50:05 +0100
Do a mod_rewrite with the [P] directive for JSPs
RewriteRule ^\/(.+)\.jsp(.+)?
ajp://tomcat.server:8009/$1.jsp$2 [P,L]
RewriteRule ^\/(.+)\.xml(.+)?
ajp://tomcat.server:8009/$1.xml$2 [P,L]
RewriteRule ^\/(.+)\/j_security_check(.+)?
ajp://tomcat.server:8009/$1/j_security_check$2 [P,L]
Or with a cluster...
RewriteRule ^\/(.+)\.jsp(.+)?
balancer://mycluster/$1.jsp$2 [P,L]
RewriteRule ^\/(.+)\.xml(.+)?
balancer://mycluster/$1.xml$2 [P,L]
RewriteRule ^\/(.+)\/j_security_check(.+)?
balancer://mycluster/$1/j_security_check$2 [P,L]
Tom wrote:
> Now, after implementing mod_proxy_ajp, I do not have a clue how to
> change all of the JK* settings to use the new mod_proxy_ajp approach.
> Previously I used JKmount /*.jsp worker1
>
> I am not sure how to use a <Location> for a <LocationMatch>. I did
> experiment with <LocationMatch ".jsp"> but that did not seem to work.
>
> Mladen Turk wrote:
>> David Smith wrote:
>>> And the Apache httpd module API is as far as I understand a moving
>>> target. Modules for 2.0.x are not compatible with 2.2. Try one
>>> built for 2.2, or if available,
>>
>> It is not available, neither it will be.
>> The preferred solution is to use the mod_proxy with
>> mod_proxy_ajp and mod_proxy_balancer.
>>
>>> use the mod_rewrite for 2.2. It's supposed to be able to handle the
>>> AJP/1.3 protocol.
>>>
>>
>> Use mod_proxy and mod_proxy_ajp.
>> Although mod_rewrite can be used, it lacks the AJP
>> protocol configuration (uses defaults).
>>
>> Regards,
>> Mladen.
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If I am following this thread correctly it seems that with Apache 2.2.3 the
better(suggested?) way to connect to Tomcat is to use mod_proxy_ajp, which
is compiled into Apache by default.
Is that the case? Is this the technical direction the AJP connector will be
taking?
Jim
_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]