apache - 为什么 Jenkins 提示我的反向代理设置被破坏了?

标签 apache tomcat jenkins configuration reverse-proxy

我不知道为什么在 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.

要到达系统配置:

  1. 转到您的 Jenkins 页面
  2. 点击管理 Jenkins
  3. 点击配置系统
  4. 滚动到 Jenkins Location 并找到 Jenkins URL。

确保端口值与 <arguments> 中设置的端口值匹配jenkins.xml 文件的一部分,位于您计算机上的 Jenkins 文件夹中。

关于apache - 为什么 Jenkins 提示我的反向代理设置被破坏了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27161854/

相关文章:

maven - 由于缺少父 pom,Jenkins 无法解析 pom

git - 错误 : Error fetching remote repo 'origin' returned status code 143

php - 在 puphpet PHP 5.6 上找不到类 'SimpleXMLElement'

java - java拆分类时spring失败

java - 分块发送大图像

java - 使用 Amazon AWS 和 tomcat 设置网络服务

java - 为什么 Jacoco 排除 java 类?

apache - tomcat 或 apache 自动编码重定向 url

apache - PhpMailer 能够从 Windows 但不能从 CentOS 发送邮件

Apache 2.4 mod_rewrite 没有按预期工作