由于我们只有一个域名暴露,特殊需求,所以需要二级目录访问
配置文件在 defaults.properties 第1985行
contextPath 改掉就好了# Context path for the GO application. You might want to change the context
# path if running Gitblit behind a proxy layer such as mod_proxy.
#
# SINCE 0.7.0
# RESTART REQUIRED
server.contextPath = /git/
然后重启服务
来源:oschina
链接:https://my.oschina.net/u/4000302/blog/4297127