Thanks again Rainer,
I think we're getting somewhere with this... but unfortunately all
responses to myserver.com/tomcat/anything are completely empty. This
means something is happening because the response to myserver.com/
tomcat is that it doesn't exist (because the rewrite rule doesn't
apply if there is no trailing slash and it's trying to find the static
page to serve).
I have noted the e-mail wrapping of the line and corrected for it.
My workers.properties file looks like
workers.tomcat_home=/usr/share/tomcat5.5
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
/=worker1
and my apache configuration (after module loading etc) has
RewriteEngine On
RewriteRule /tomcat/(.*) /$1 [E=JK_WORKER_NAME:worker1,H=jakarta-
servlet,PT]
I don't have any explicit JkMount lines anywhere and I'm not seeing
anything unusual in my logs.
Have any further ideas? I really appreciate your help on this.
On 4 Nov 2007, at 14:04, Rainer Jung wrote:
LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule /tomcat/(.*) /$1
[E=JK_WORKER_NAME:myworker,H=jakarta-servlet,PT]
The RewriteRule line extends until "PT]"
This will activate JK forwarding via a worker called myworker (you can
replace it by the name of your worker) for everything that starts with
/tomcat/ and also changes the forwarding URL by stripping the leading
"/tomcat".
FOR Apache we use mod_rewrite for those tricks, because it is a
modular
server and there exists many usefuk modules. For IIS this kind of
ability is already build into the JK isapi plugin.
Is that what you are looking for?
Note that now we don't replace /tomcat by /servlet-examples, so a
working request now would be /tomcat/servlet-example/something.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]