簡體   English   中英

使用mod_proxy的Apache背后的Jenkins

[英]Jenkins behind an Apache with mod_proxy

我按照說明操作,在Jenkins面前使用Apache的反向代理不起作用。 我已經設置了一個代表Jenkins的Apache虛擬主機配置:

Apache虛擬主機

<VirtualHost *:8084>
    ServerAdmin emil@my_email.com
    ProxyRequests     Off
    ProxyPass         /jenkins  http://localhost:8084/jenkins
    ProxyPassReverse  /jenkins  http://localhost:8084/jenkins
    <Proxy http://localhost:8084/jenkins*>
      Order allow,deny
      Allow from all
     </Proxy>
    ProxyPreserveHost on
 </VirtualHost>

虛擬主機已激活,沒有錯誤。

你可以在這里看到我對/ etc / default / jenkins的更改:

HTTP_PORT=8084
...
PREFIX=/jenkins
...
JENKINS_ARGS="--httpListenAddress=127.0.0.1 --webroot=/var/cache/jenkins/war --prefix=$PREFIX --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"

我正在追蹤apache日志和jenkins,但當我嘗試訪問http://:8084 / jenkins時,我什么都沒得到,沒有頁面。 當我在沒有--httpListenAddress = 127.0.0.1的情況下啟動Jenkins時,我成功打開http://:8084 / jenkins,但這是直接訪問Jenkins,不通過Apache。

任何想法可能是我的反向代理配置中的問題? 這是非常標准的。

謝謝,

埃米爾

我忘記在ports.conf中添加“Listen 8084”指令,因此Apache沒有在那里聽。 無論如何,解決了,不應該在星期五晚上做設置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM