Install Jenkins centos 6.4 mod_proxy

Let’s define which java version is installed (we need 1.6)
# java -version
# sudo yum remove java

You must have EPEL repo enabled
# yum install java-1.6.0-openjdk
#sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
#sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
#sudo yum install jenkins

add this to /etc/sysconfig/jenkins
JENKINS_ARGS="--httpListenAddress=127.0.0.1 --prefix=/jenkins"

add this to /etc/http/conf.d/jenkins.conf

RequestHeader unset X-Forwarded-User

RewriteEngine On
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule .* – [E=RU:%1]
RequestHeader set X-Forwarded-User %{RU}e

ProxyPass /jenkins http://localhost:8080/jenkins
ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyRequests Off
Order deny,allow
Allow from all

One thought on “Install Jenkins centos 6.4 mod_proxy

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *