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: VirtualHost *:80 ServerName app1.example.com RewriteRule ^(.*)$ /app1/$1 [PT]

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: VirtualHost *:80 ServerName app1.example.com # you do not want to have a loop RewriteCond %{REQUEST_FILENAME} !^/app1/ RewriteRule ^/(.*)$ /app1/$1 [PT] Location /app1/ SetEnv JK_WORKER_NAME

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

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. First,

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

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: Location /tomcat-dir/