From: Trygve Laugstøl Date: Fri, 30 Sep 2011 08:43:33 +0000 (+0800) Subject: o Adding support for customizing the webapp's context path. X-Git-Tag: v0.7.0~88^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d253a0fba287a01779dde5ec932598bb8876426;p=gitblit.git o Adding support for customizing the webapp's context path. --- diff --git a/src/com/gitblit/GitBlitServer.java b/src/com/gitblit/GitBlitServer.java index 5c8c5fe4..1b079de8 100644 --- a/src/com/gitblit/GitBlitServer.java +++ b/src/com/gitblit/GitBlitServer.java @@ -209,7 +209,7 @@ public class GitBlitServer { // Root WebApp Context WebAppContext rootContext = new WebAppContext(); - rootContext.setContextPath("/"); + rootContext.setContextPath(settings.getString(Keys.server.contextPath, "/")); rootContext.setServer(server); rootContext.setWar(location.toExternalForm()); rootContext.setTempDirectory(tempDir);