Lost !

-----hard working for the furture.

导航

统计

Gerrit环境搭建

https://www.cnblogs.com/liuqiongcn/p/17260313.html

sudo apt-get install apache2-utils
打开终端,进入review_site/etc目录下,执行:
$: touch passwords
$: htpasswd -b passwords admin admin

 

httpd.conf

<VirtualHost localhost:8080>
    ServerName localhost
    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/jeams/web_gerrit/etc/passwords  
      Require valid-user  
    </Location>

    AllowEncodedSlashes On
    ProxyPass / http://localhost:8080/
</VirtualHost>

sudo ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy.conf
sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/proxy.load
sudo ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_http.load

sudo a2enmod proxy proxy_http proxy_wstunnel

https://gerrit-documentation.storage.googleapis.com/Documentation/3.10.0/config-sso.html#_http_basic_authentication

https://blog.51cto.com/u_14344871/3369394

https://blog.csdn.net/velanjun/article/details/39431811

https://gerrit-documentation.storage.googleapis.com/Documentation/3.10.0/config-reverseproxy.html

 

posted on   失落''80  阅读(3)  评论(0编辑  收藏  举报

编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
历史上的今天:
2023-07-27 zip
2023-07-27 qdart
点击右上角即可分享
微信分享提示