Hmmm... This was not my experience using more sophisticated regular 
expression pattern matching and replacements via rewrite directives, but 
I'm glad to see there are work-arounds for some situations such as the one 
you mention for Rob's configuration.

I was speaking more to configurations like this:

         # serve static files as-is
         RewriteCond   /home/site/html/$1   -f
         RewriteRule   ^/(.*)$               - [L]

         # default handler servlet
         # send everything else to the request broker using the file 
extension as the pool name
         RewriteRule   ^/(.*)\.(.+) 
/request-broker/servlet/RequestBroker/$2/$1 [PT]

I suppose one could use Tomcat's ability to map file extensions to 
servlets, but you'd still need the context portion of the path.

The main thing is that mod_rewrite is great tool (albeit double-edged), and 
to my knowledge mod_jk and mod_webapp essentially ignore it because they 
insist on operating on an original copy of the URI rather than the one 
processed by mod_rewrite.


At 04:09 PM 3/15/02 +0100, Ralph Einfeldt wrote:
>As I understand it, no 'hacking' is needed to use mod_jk
>without redirect to achieve the same effect :
>
><VirtualHost 192.168.1.200:80>
>       ...
>       DirectoryIndex /site1contextname/index.jsp
>       # Should be equivalent to
>       # RewriteEngine On
>         # RewriteRule ^/$ /site1contextname/index.jsp [NC,R]
></VirtualHost>
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Dan Lindy [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 15. M�rz 2002 15:49
> > An: Robert Walther
> > Cc: Tomcat Users List
> > Betreff: Re: Multiple Tomcat 3.2.4 JVMs Document
>
> > To get around this, I was able to successfully hack the mod_webapp
>Apache
> > 1.3 module, and it appears to be working just fine with multiple
>instances
> > of Tomcat running on the same server.
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to