Hi, the best way is to deploy your application to run inside tomcat without a context path - eg. to be available at http://localhost:8080/ instead of http://localhost:8080/myApplication and use your apache reverse proxying / virtual host as it is.
Trying to strip application context in virtual host configuration in my expirience was troublesome in some of my expiriences and now I always try to avoid it. What do you mean exactly by "without deploying it as ROOT.war"? You can set the context path of your Tomcat deployed applications to whatever you want - context path doesn't have to be the same as .war archive name. Just stop using deployment trough webapps directory and start using context files inside tomcat-x.x.x/conf directory to define your applications (all explained here http://tomcat.apache.org/tomcat-6.0-doc/config/context.html ), for example: 1. Make a file called ${catalina.base}/conf/Catalina/localhost.ROOT.xml that contains: <?xml version='1.0' encoding='utf-8'?> <Context docBase="${catalina.base}/war/myApplication.war" path=""> <Manager pathname=""/> </Context> 2. Copy you myApplication.war to ${catalina.base}/war - or some other directory if you want to arange things differently. 3. Remove myApplication.war from ${catalina.base}/webapps Where ${catalina.base} is you current tomcat installation (or base instance) where you are currently deploying you app. On 1/29/12, Thomas Rohde <t...@ordix.de> wrote: >> I'm running tomcat 6 behind apache. >> >> I currently have an application deployed as "myApplication" and it is >> available at "http://www.mydomain.com/myApplication". >> >> How can I make this application available at "http://www.mydomain.com" >> without deploying it as ROOT.war? >> >> My server is running Ubuntu 10.04. >> >> Thanks! >> >> Dean Del Ponte >> > > You could use a rewrite rule to achieve that: > > RewriteEngine On > RewriteRule ^/$ /myApplication/ [PT] > JkMount /myApplication* tomcat > > Works for me very well. > > Thomas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Why? Because YES! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org