Shug Boabby schrieb: > 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=/
Delete the first three lines. They are non-functional and obsolete. > worker.list=worker1 > worker.worker1.port=8009 > worker.worker1.host=localhost > worker.worker1.type=ajp13 > worker.worker1.lbfactor=1 I don't understand the next line. It should not have any effect. > /=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. No JkMounts is OK, they are replaced by the RewriteRule. Are you using Apache 2.2? Now we go into debugging mod_rewrite and mod_jk. RewriteLogFile logs/rewrite.log RewriteLogLevel 9 will give you information, what mod_rewrite does with your URL. JkLogFile logs/mod_jk.log JkLogLevel debug will give us a lot of information, which URL gets passed to mod_jk, and what it does with it. > 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]