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

查看:26
本文介绍了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天全站免登陆