Re: Using the jk connector to join different tomcat contexts with discrete urls

2007-03-23 Thread Erik Melkersson
Hi! Actually I never got JkMount to work, so I would say something like: ServerName app1.example.com # you do not want to have a loop RewriteCond %{REQUEST_FILENAME} !^/app1/ RewriteRule ^/(.*)$ /app1/$1 [PT] SetEnv JK_WORKER_NAME worker_for_app1 SetHandler jakarta-

Re: Using the jk connector to join different tomcat contexts with discrete urls

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erik, Erik Melkersson wrote: > Hi! I wanted to do something similar. (but without the two virtual > hosts). It sounds like a solution might be something like this: ServerName app1.example.com RewriteRule ^(.*)$ /app1/$1 [PT] JkMount /

Re: Using the jk connector to join different tomcat contexts with discrete urls

2007-03-22 Thread Erik Melkersson
Hi! I wanted to do something similar. (but without the two virtual hosts). I did like this: # The directory the user sees RewriteRule ^/test/aaa/(.*) /tomcat-dir/$1 [PT] RewriteRule ^/test/bbb/(.*) /tomcat-dir/stuff/$1 [PT] # The directory tomcat serves the stuff on: SetEnv JK_WORKER_NAME wo

Re: Using the jk connector to join different tomcat contexts with discrete urls

2007-03-22 Thread David Harrison
On 23/03/2007, at 8:49 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Harrison wrote: I wish to map different Apache urls across to specific Tomcat contexts, for example: http://app1.example.com/ to TOMCAT/app1. http://app2.example.com/ to TOMCAT/a

Re: Using the jk connector to join different tomcat contexts with discrete urls

2007-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Harrison wrote: > I wish to map different Apache urls across to specific Tomcat contexts, > for example: > http://app1.example.com/ to TOMCAT/app1. > http://app2.example.com/ to TOMCAT/app2 This should be relatively straightforward. Fir

Using the jk connector to join different tomcat contexts with discrete urls

2007-03-22 Thread David Harrison
Hi, I am a little lost when it comes to linking Tomcat to Apache in circumstances where the urls to not map directly across to each other. For example I have a Tomcat server with the following applications deployed: TOMCAT/app1 TOMCAT/app2 I wish to map different Apache urls across to spec