Jenkins网站的根路径 [英] Jenkins website root path

查看:130
本文介绍了Jenkins网站的根路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循以下说明: https://wiki.jenkins -ci.org/display/JENKINS/Running+Jenkins+behind+Apache 设置我的Jenkins服务器以显示在 http://myhost/jenkins .它可以工作,但是Jenkins网站认为 http://myhost/是jenkins/的根.

I'm trying to follow the directions here: https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache to set up my Jenkins server to appear at http://myhost/jenkins. It works, but the Jenkins website thinks http://myhost/ is the jenkins/ root.

我认为此问题是由该网页上的第一个警告标志引起的,即我的上下文路径设置不正确.但是,我不知道在哪里设置上下文路径.关于ubuntu和Windows的说明已经很清楚了,但是在Mac OS X 10.6上,没有jenkins.xml文件,没有/etc/default/jenkins文件,在〜/.jenkins/config.xml中没有任何相关的内容.

I believe this problem is caused by the first warning flag on that web page, i.e. that my context path is not set correctly. However, I can't figure out where to set the context path. The instructions for ubuntu and windows are clear enough, but on Mac OS X 10.6, there is no jenkins.xml file, no /etc/default/jenkins file, and nothing of relevance I can see in ~/.jenkins/config.xml.

那么,我想念什么?我在哪里可以告诉jenkins,其根目录位于/jenkins/,而不是/?

So, what am I missing? Where can I tell jenkins that its root is in /jenkins/ instead of /?

推荐答案

不确定config.xml中的位置,但位于 http://myhost /jenkins/configure ,有一个名为"Jenkins URL"的选项,您可以用来设置它.

Not sure where to look in config.xml, but at http://myhost/jenkins/configure, there's an option called "Jenkins URL" that you can use to set that.

这篇关于Jenkins网站的根路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆