-----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, you'll need two Apache httpd virtual hosts configured.

For each virtual host, just use the appropriate JkMount directives to
send URI mappings "perhaps just /" to the proper worker.

The only catch is the URIs themselves. If you want / to map to /app1, it
might be easiest to make "app1" into the ROOT application for that
Tomcat instance, and use two separate Tomcat instances.

I believe that using mod_proxy_ajp (instead of mod_jk), you can do this
very easily using something along the lines of

# In VirtualHost app1.example.com
ProxyPass / ajp13://localhost:8080/app1

# In VirtualHost app2.example.com
ProxyPass / ajp13://localhost:8080/app2

I believe that this is trickier when using mod_jk. This is one of the
only situations where I've found that mod_proxy_ajp is nicer than mod_jk.

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

iD8DBQFGAuvi9CaO5/Lv0PARAuSMAJ9iKxqvmrhTpf3SvH8JtW4cqp/z8QCeNfti
oU9fjkAebvdwIu263QmjJQY=
=BuiT
-----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