• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
yuzaipiaofei
博客园    首页    新随笔    联系   管理    订阅  订阅

gerrit配置安装

root@msm:/etc/apache2# cat httpd.conf 
<VirtualHost 192.168.10.174:8080> 
  ServerName 192.168.10.174:8080
  ProxyRequests Off 
  ProxyVia Off 
  ProxyPreserveHost On 
 
  <Proxy *> 
        Order deny,allow 
        Allow from all 
  </Proxy> 
  
  <Location /login/> 
     AuthType Basic 
     AuthName "Gerrit Code Review" 
     AuthBasicProvider file 
     AuthUserFile /home/gerrit2/review_site/etc/passwords
     Require valid-user 
  </Location> 
 
  ProxyPass / http://127.0.0.1:8080/
</VirtualHost>


下面是HTTP配置反向代理

gerrit2@msm:~/review_site$ cat etc/gerrit.config 
[gerrit]
     basePath = git
     canonicalWebUrl = http://192.168.10.174:8080/
[database]
     type = H2
     database = db/ReviewDB
[auth]
     type = http
[sendemail]
     smtpServer = localhost
[container]
     user = gerrit2
     javaHome = /usr/local/jdk1.6.0_32/jre
[sshd]
     listenAddress = *:29418
[httpd]
     listenUrl = proxy-http://*:8080/
[cache]
     directory = cache


posted @ 2012-07-30 16:40  yuzaipiaofei  阅读(216)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3