]> source.dussan.org Git - gitblit.git/commitdiff
o Adding support for customizing the webapp's context path.
authorTrygve Laugstøl <trygvis@inamo.no>
Fri, 30 Sep 2011 08:43:33 +0000 (16:43 +0800)
committerJames Moger <james.moger@gitblit.com>
Mon, 10 Oct 2011 14:49:29 +0000 (22:49 +0800)
src/com/gitblit/GitBlitServer.java

index 5c8c5fe4617ee27e1812a8be8265a45a9a1c3928..1b079de8c926f5ef7664b36970dd7a5fb68b6cb9 100644 (file)
@@ -209,7 +209,7 @@ public class GitBlitServer {
 \r
                // Root WebApp Context\r
                WebAppContext rootContext = new WebAppContext();\r
-               rootContext.setContextPath("/");\r
+               rootContext.setContextPath(settings.getString(Keys.server.contextPath, "/"));\r
                rootContext.setServer(server);\r
                rootContext.setWar(location.toExternalForm());\r
                rootContext.setTempDirectory(tempDir);\r