9

I know that in a default Tomcat 8 configuration I can drop a file foo.war file into the webapps/ directory, and Tomcat will autodeploy my web app with a context path of /foo/.

Bu what WAR filename would I use if I wanted the context path to be /foo/bar?

Garret Wilson
  • 18,219
  • 30
  • 144
  • 272

1 Answers1

6

Deploying a WAR file named foo#bar.war into webapps would result in a context path of /foo/bar. See Apache Tomcat 8 Configuration Reference: The Context Container: Naming.

Garret Wilson
  • 18,219
  • 30
  • 144
  • 272