我不知道为什么在 Jenkins 更新到版本 1.591 (Ubuntu Server 12.04) 之后,原本正确设置的反向代理现在被破坏了。我当前的设置与 Jenkins wiki 中所说的完全相同:
ProxyPass /jenkins http://localhost:8081/jenkins nocanon
ProxyPassReverse /jenkins http://localhost:8081/jenkins
ProxyPreserveHost On
ProxyRequests Off
AllowEncodedSlashes NoDecode
<Proxy http://localhost:8081/jenkins*>
Order deny,allow
Allow from all
</Proxy>
--prefix=/jenkins
也被添加到 /etc/default/jenkins
文件中
这是 Jenkins 中的错误吗?
最佳答案
我在将 Jenkins 作为 Windows 服务包时遇到了这个问题。
根据他们的 wiki :
Make sure the Jenkins URL configured in the System Configuration matches the URL you're using to access Jenkins.
要到达系统配置:
- 转到您的 Jenkins 页面
- 点击管理 Jenkins
- 点击配置系统
- 滚动到 Jenkins Location 并找到 Jenkins URL。
确保端口值与 <arguments>
中设置的端口值匹配jenkins.xml 文件的一部分,位于您计算机上的 Jenkins 文件夹中。
关于apache - 为什么 Jenkins 提示我的反向代理设置被破坏了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27161854/