Just use an empty String as Context path in tomcat/conf/server.xml, for
example:
If you want to have both URLs working but not configure everything twice,
another method would be to leave the application as is and use Apache's
mod_rewrite to redirect all requests to the right URL,
for example:
RewriteEngine On
RewriteRule ^/$ /tgp/ [R]
# or with specified host
RewriteRule ^/$ http://localhost/tgp/ [R]
(see http://httpd.apache.org/docs/misc/rewriteguide.html)
At 12:03 10.07.2003 -0700, you wrote:
i know this isn't the most sexy question in the world. but, my webapp is
getting pounded by traffic right now, and i need this to finish off a
desperate performance enhancement . . .
does anyone know how to set a webapplication as the root of a virtual host
using mod_jk2? basically, i have a webapp /tgp that is accessible via
http://localhost/tgp -- but i want this app to be accessible through a
virtual host http://tgp --> http://localhost/tgp
if anyone could help, you would save me dozens of customers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]