Jenkins website root path

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

    Put this into /etc/apache2/other/jenkins.conf:

    ProxyPass         /jenkins  http://localhost:8009/jenkins
    ProxyPassReverse  /jenkins  http://localhost:8009/jenkins
    ProxyRequests     Off
    
        Order deny,allow
        Allow from 127.0.0.1
    
    

    Then execute these commands:

    sudo defaults write /Library/Preferences/org.jenkins-ci httpPort 8009
    sudo defaults write /Library/Preferences/org.jenkins-ci prefix /jenkins
    sudo launchctl stop org.jenkins-ci
    

    The last command tells launchd to stop the running instance of Jenkins. And a new one will automatically be started because the launchd has been configured to always keep Jenkins running.

提交回复
热议问题