Whats the best approach to place servlet context to tomcat 7
root? I have tried this post here but didn't work for me; i'm using Apache Tomcat/7.0.42
.
P.S: I don't want to rename the project name as ROOT.war
.
Update
I have placed the context
tag as explained in one of the answers, but still getting the tomcat
home page as root:
<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 about the ROOT
directory in webapps
, after removing now I could have the app as root.