Specifying a nested context path in Tomcat using autodeploy inside webapps/
Asked Answered
C

1

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?

Conversion answered 2/11, 2016 at 0:6 Comment(0)
C
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.

Conversion answered 15/11, 2016 at 14:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.