Wade Chandler wrote:
You can use the mod_rewrite:
RewriteEngine On
RewriteRule ^/tomcat/(.+)$ /$1 [R,L]
JkMount /* ajp13
But this will map everything to the tomcat.
You can not do (for now):
/tomcat/examples/* -> /examples/*
and then back to:
/examples/* -> /tomcat/examples/*
This would require that mod_jk when forwarding the request
to Tomcat strips the '/tomcat' from the URL, and then
after receiving the response add the '/tomcat' prefix to
the url. Of course you will be forced to use only the
relative url's inside your application, so the usage
is dubious.
#this will allow all rsg servlets to be run through tomcat.
[uri:/*servlet*]
info= for all servlets in a servlet directory
context=/
You can use (for JK1.2.8)
JkMount /*/servlet/*
This was not possible on pre 1.2.8.
But I think he ment something else,
and that is dynamically rewriting the url with mod_jk.
For example:
JkMount /tomcat/* ajp13
JkMountPrefix /tomcat ajp13
Something like that would allow that for:
/tomcat/foo/* actuall requests to Tomcat are /foo/*
This still sounds to me somehow silly.
One can create a virtual host inside Apache and
redirect it to Tomcat ROOT so that for example
all requests to http://host are for the Apache,
and http://tomcat.host mapped with 'JkMount /* ajp13'
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]