-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pete,

On 2/20/2009 12:25 AM, Pete Helgren wrote:
> Chris suggested that I use
> JKMount /<context>/* but not knowing exactly how that would play when
> the context was ROOT

With "JkMount /context/*", a ROOT-deployed application won't work
without other configuration.

If you'd really like to do that, you can search the archives for uses of
mod_rewrite to change the name of the context portion of the URL (or
even remove it). I believe mod_proxy_ajp makes this even easier because
it can "mount" and "rewrite" all in one step:

ProxyPass /context ajp13://localhost:8009/

Note the lack of "context" at the end of that second URL.

> I went ahead and installed the application at the
> /asaap3 context so the final JKMount entry was /asaap3/* .  That works! 
> And I understand why.  All of the folders like /templates /scripts
> /images /stylesheets are off of the context so now the /asaap3/ASAAP
> pages have the correct url mapping.  The anyhost/asaap3/ASAAP returns
> the correct path to anyhost/asaap3/images/bg_hdr_logo.gif
> 
> So you can not only find the correct page, but the correct images as
> well. The slightly longer URL isn't an issue.  /asaap3/ASAAP vs /ASAAP
> isn't a problem.

You can also map "/" to a servlet if "ASAAP" is actually your controller
servlet or something. Then your URL would be "anyhost/asaap3/".

- -chris

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

iEYEARECAAYFAkmerHMACgkQ9CaO5/Lv0PAzGQCgqofo8YlNMcu/BxipfDFo6jlk
qMkAn3xxrz0FiDwUA+x0D5fHIkcLDvIT
=ZHoG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to