What is the best approach for hosting servlet context in tomcat 7 root? I tried this post here , but did not work for me; I am using Apache Tomcat/7.0.42 .
PS: I do not want to rename the project name as ROOT.war .
Update
I put the context tag as described in one of the answers, but still get the tomcat homepage with root privileges:
<Host name="localhost" appBase="webapps" <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> <Context docBase="app-renderer" path="/" reloadable="true" /> </Host>
Update 2
The problem was in the ROOT directory in webapps , after uninstalling now I could use the application as root.
tokhi source share