3
我遵循指示和反向代理與詹金斯面前的Apache不起作用。我已成立了一個Apache虛擬主機配置來代理詹金斯:詹金斯背後的Apache與mod_proxy
Apache的虛擬主機
<VirtualHost *:8084>
ServerAdmin [email protected]_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 /默認/詹金斯在這裏:
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日誌和詹金斯,但是當我嘗試訪問http://:8084 /詹金斯,我什麼也沒有,沒有頁面。當我在沒有--httpListenAddress = 127.0.0.1的情況下啓動Jenkins時,我成功打開了http://:8084/jenkins,但這是直接訪問Jenkins,不通過Apache。
任何想法可能是我的反向代理配置中的問題?這是相當標準的。
感謝,
周華健
當我製作相同的配置並啓動apache並擊中jenkins url時,會創建無限數量的apache2任務...您能幫我嗎? – Saby