When we deploy project in tomcat, by default its run as
http://<ip>:8080/warname/index.jsp
But when we use domain name and wants that on running tomcat automatically the projects main page is opened, we simply need to add following entry in conf/server.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="false">
<Context path="/" docBase="warname" debug="0" reloadable="true"></Context> /*without writing .war*/
</Host>
It will directly open your project when you write http://localhost(domain-name)/
0 Comment(s)