简体   繁体   English

Jenkins URL不起作用

[英]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. 目前,Jenkins正在主IP地址中运行,现在我想将其更改为IPADDR / jenkins,因为我想在那里运行另一个网站。 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. 我做了从Jenkins配置“ Jenkins URL”到IPADDR / jenkins的更改,但是主要IP地址仍然可以访问Jenkins,因此我无法托管所有其他网站,因为无论我走到哪里,我都被重定向到Jenkins。 Using ubuntu 16.04 w/ apache2. 使用ubuntu 16.04 w / apache2。

You must configure your web server to act as a reverse proxy . 您必须将Web服务器配置为充当反向代理 Then it can 然后可以

  • relay requests to /jenkins/... URLs to Jenkins, and 将请求中继到/jenkins/...到Jenkins的URL,以及
  • serve other URLs on top of that. 除此之外还提供其他网址。

See the Jenkins Wiki for details on running Jenkins behind a reverse proxy. 有关在反向代理后面运行Jenkins的详细信息 ,请参见Jenkins Wiki

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM