为什么 Jenkins 抱怨我的反向代理设置坏了?

问题描述:

我不知道为什么在 Jenkins 更新到版本 1.591 (Ubuntu Server 12.04) 后,原来正确设置的反向代理现在坏了.我当前的设置与 Jenkins wiki 中所说的完全相同:

I have no idea why after Jenkins is updated to version 1.591 (Ubuntu Server 12.04), the originally correctly set up reverse proxy now becomes broken. My current setting is exactly the same as said in 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 文件

also --prefix=/jenkins has been added into /etc/default/jenkins file

这是詹金斯的一个错误吗?

Is that a bug in Jenkins?

结果一切正常,即使烦人的消息持续出现.我认为这是版本的一个小错误.

It turns out everything works fine even though the annoying message persistently appears. I think it is a minor bug of the version.