我只是“yum install jenkins”并运行到 war 文件。
现在可以通过“xxxx:8080”访问jenkins服务器;
如何使用自生成证书通过 SSL/TLS 路由所有流量?
我查看过以前有关 https 上的 Jenkins 的文章,但发现没有一篇适用。
请帮忙,谢谢。
答案1
您的 httpd.conf 看起来像这样,以反向代理 Jenkins。
VirtualHost *:80>
DocumentRoot /var/www/html
ProxyPass / http://localhost:8080 / nocanon
ProxyPassReverse / http://localhost:8080/
ProxyRequests Off
ProxyPreserveHost On
<Proxy http://localhost:8080/*>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
#<Proxy http://localhost:8080/jenkins*>
# Order allow,deny
# Allow from all
#</Proxy>
#ProxyPass /jenkins http://localhost:8080/jenkins nocanon
#ProxyPassReverse /jenkins http://localhost:8080/jenkins
#ProxyPassReverse /jenkins http://seedonkjenkins/jenkins
#ProxyPass /jenkins http://localhost:8080/jenkins
#ProxyPassReverse /jenkins http://localhost:8080/jenkins
#ProxyRequests Off
SSLProxyEngine On
ProxyPreserveHost on
ProxyPass / https://localhost:8081
ProxyPassReverse / https://localhost:8081