Tomcat removes the context path from the URL

This question already has an answer here:

  • How to set the context path of a web application in Tomcat 7.0 9 answers

I can only access my application when I give context path like:

and not with:

If I give, it loads tomcat application under ROOT. What change do I have to make to be able to access application without context path?

You can change the below in your {CATALINA_HOME}/conf/server.xml to point to your webapp,

    <Context path="" docBase="your application folder relative
               path from webapps" debug="0">