Gerrit 配置与 Nginx 反向代理的问题

weixin_38061732 2017-03-23 01:32:36
我在配置Gerrit,已经花费了快2天的时间,但是一些乱78糟的问题已经解决,现在还有一个问题,怎么也没搞定,现在的情况是可以访问:10.18.126.110:8888 ,但是输入了使用htpasswd 添加在/home/gerrit/review_site/htpasswd.conf的用户名和密码进去之后就报错: 话说,我访问的是10.18.126.110:9999 会出现500错误。 Nginx配置: server { listen *:8888; server_name localhost; allow all; deny all; auth_basic "Welcomme to Gerrit Code Review Site!"; auth_basic_user_file /home/gerrit/review_site/htpasswd.conf; location / { proxy_pass http://127.0.0.1:8082; } } Gerrit配置(因为还没用到LDAP,使用的HTTP验证,LDAP回头再配置): basePath = /home/gerrit/GerritResource/ canonicalWebUrl = http://*:8082 serverId = a62a7909-698f-4b22-a2de-340f4d54e89e [database] type = h2 database = db/ReviewDB [auth] type = HTTP [sendemail] smtpServer = localhost [container] user = gerrit javaHome = /opt/jdk1.8.0_121/jre [sshd] listenAddress = *:29418 [httpd] listenUrl = http://*:8082  
...全文
给本帖投票
262 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

473

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧

手机看
关注公众号

关注公众号

客服 返回
顶部