-----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]

    JkMount /* worker_for_app1
</VirtualHost>

<VirtualHost *:80>
    ServerName app2.example.com

    RewriteRule ^(.*)$ /app2/$1 [PT]

    JkMount /* worker_for_app2
</VirtualHost>

I always forget exactly what mod_rewrite does to the URL (the transform
is obvious, but I mean, how it affects processing), so you might have to
tweak the flags in order to get this to work properly.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGA8U+9CaO5/Lv0PARAl5RAKC4fj5lVb4ziz3dg9M5YTV6NSdfkQCgtHma
JguYoc7ahJ+eNJh1PRzVPxA=
=sGoJ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to