user3285229 user3285229 - 2 months ago 8
Apache Configuration Question

Jenkins URL doesn't work

At the moment, Jenkins is running in a main IP Address and now I want to change it to IPADDR/jenkins cause I wanted to run another website there.
I did the change from Jenkins Configuration "Jenkins URL" to IPADDR/jenkins but Jenkins is still accessible by the main ip address so I cannot host all the other websites cause everywhere I go, I got redirected to Jenkins.
Using ubuntu 16.04 w/ apache2.

Answer

You must configure your web server to act as a reverse proxy. Then it can

  • relay requests to /jenkins/... URLs to Jenkins, and
  • serve other URLs on top of that.

See the Jenkins Wiki for details on running Jenkins behind a reverse proxy.

Comments