where to set the context path - jenkins

0 votes

where to set the context path - jenkins

I’m trying to set me Jenkins server to appear at http://myhost/jenkins, It works, but the Jenkins website thinks http://myhost/ is the jenkins/ root. I can't figure out where to set the context path.

Aug 9, 2018 in Jenkins by lina
• 8,220 points

2 answers to this question.

0 votes
Add prefix attribute to /etc/default/jenkins file:

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

Configure your web server (e.g. - nginx) to redirect /jenkins to localhost:8080;
answered Aug 9, 2018 by Kalgi
• 52,370 points
0 votes

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

ProxyPass         /jenkins  http://localhost:8009/jenkins
ProxyPassReverse  /jenkins  http://localhost:8009/jenkins
ProxyRequests     Off
<Proxy http://localhost:8009/jenkins*>
    Order deny,allow
    Allow from

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
answered Aug 10, 2018 by Nilesh
• 7,040 points

Related Questions In Jenkins

0 votes
1 answer
0 votes
1 answer

How to set the Sender address in Jenkins?

Hi@akhtar, In Jenkins, we need to set the ...READ MORE

answered Oct 24, 2020 in Jenkins by MD
• 95,300 points
+4 votes
7 answers

How to set the pipeline name and description for a Jenkinsfile?

You can rename pipeline jobs in jenkins ...READ MORE

answered Oct 11, 2018 in Jenkins by Hannah
• 18,570 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+1 vote
3 answers
0 votes
2 answers

will running multiple Jenkins masters on same host increase the performance?

While using one big master, u can ...READ MORE

answered Aug 7, 2018 in Jenkins by Kalgi
• 52,370 points