I want to have this directory structure for Tomcat7 apps:
/var/lib/tomcat7/webapps /foo /current -> /var/lib/tomcat7/webapps/foo/releases/1.1 /releases /1.0 /1.1 /shared ...
current is a symlink to the actual current version of the app. As a consequence I believe I need to add a context to my
server.xml file, like so:
<Context path="/foo/app" docbase="/var/lib/tomcat7/webapps/foo/current" />
The URL for
foo/app would then be
However all I get are 404 errors. I installed tomcat-admin and it shows
foo/app but isn't really helping me to see where I wired things incorrectly. I've also tried a
foo.xml file in
/etc/tomcat7/Catalina/localhost that specifies the path and docbase, but that didn't work either.
How do I configure the context to support the directory structure shown above?