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]

Reply via email to