Jenkins website root path

前端 未结 11 561
不思量自难忘°
不思量自难忘° 2020-12-01 06:07

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/j

11条回答
  •  时光取名叫无心
    2020-12-01 06:59

    Just to provide some recent confirmation of the suggested approaches, on CentOS 7, with Jenkins 1.610, I was able to achieve this by changing jenkinsUrl in jenkins.model.JenkinsLocationConfiguration.xml to the desired one (e.g. http://127.0.0.1:8080/jenkins), adding

    JENKINS_ARGS="--prefix=/jenkins"
    

    inside /etc/sysconfig/jenkins, and restarting Jenkins.

    FYI the Jenkins installation was made via Puppet, using this Puppet module.

提交回复
热议问题