Jenkins website root path

前端 未结 11 559
不思量自难忘°
不思量自难忘° 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 07:09

    1. Add prefix attribute to /etc/default/jenkins file:

      JENKINS_ARGS="--webroot=/var/cache/jenkins/war --prefix=/jenkins --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT

    2. Configure your web server (e.g. - nginx) to redirect /jenkins to localhost:8080;

提交回复
热议问题