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,110 points
1,387 views

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
• 41,460 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 127.0.0.1
</Proxy>

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
• 6,880 points

Related Questions In Jenkins

0 votes
1 answer
+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
• 15,040 points
7,377 views
+2 votes
5 answers
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
175 views
0 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
• 41,460 points
589 views