gitlit二级目录访问

因为咱们只有一个域名暴露,特殊需求,因此须要二级目录访问
配置文件在 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/


而后重启服务git

相关文章
相关标签/搜索