通过apache远程访问Jenkins

时间:2015-03-29 17:03:42

标签: apache url jenkins configure accessible

我只是想设置我的Jenkins URL,以便我可以从另一台机器访问它。我真的不知道自己在做什么。我尝试了几个教程,还没有让它工作。这是我在位于/ etc / apache2 / sites-available

的Jenkins.conf文件中的内容
<VirtualHost *:80>
  <Proxy *>
     Order deny,allow
     Allow from all
  </Proxy>
  ProxyPreseveHost on
  ProxyPass /http://24.117.132.56:8080/ nocanon
  AllowEncodedSlashes NoDecode
</VirtualHost>

任何输入都将非常感谢!

1 个答案:

答案 0 :(得分:1)

你错过了空间

ProxyPass /http://24.117.132.56:8080/  # <-- wrong
ProxyPass / http://24.117.132.56:8080/ # <-- correct

你也错过了这里的角色:

ProxyPreseveHost on  # <-- wrong
ProxyPreserveHost on # <-- correct