tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: multiple instances and context roots
Date Thu, 26 Jun 2008 13:33:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom,

tom_goring wrote:
| https://www.myserver.com/dev/MYAPP/hello.jsp
| https://www.myserver.com/test/MYAPP/hello.jsp
|
| I.e. I want to know where I can set dev/test, etc.
|
| I don't really want to change the application.xml (context-root) for each
| EAR file when installed (as that would require rebuilding the EAR
dependent
| on the instance).

We do the same thing on my project, except we use different port numbers
instead of different URI prefixes. Is that acceptable?

Also, using virtual hosts will work as long as you don't mind getting
hostname mismatches when you connect. ;)

Finally, you could use mod_rewrite to adjust the URI (by removing the
/dev or /test) before it is sent to Tomcat.

I seem to recall Rainer mentioning that mod_jk had some options to do
this automatically, but I can't seem to find any reference to it in the
documentation. :(

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhjmqUACgkQ9CaO5/Lv0PC/mgCdFfdvbm4zoDgEg0AYykT73DcM
BysAniW5XtVACTeiWJYBThXJMgv7g+uR
=tpVf
-----END PGP SIGNATURE-----

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


Mime
View raw message