아파치에서 젠킨스로 proxy 사용해서 넘기기

아파치에서 젠킨스로 proxy 사용해서 넘기기

IT/리눅스_서버

2022-01-26 10:41:39


아파치를 사용해서 젠키스로 접속해야 하는 경우 프록시를 사용해야 할 때가 있다.
이때는 아래와 같이 한다.

1. vi /etc/sysconfig/jenkins
    마지막줄 수정
    JENKINS_ARGS=”–prefix=/jenkins”
 

2. 아파치 VirtualHost 수정
<Virtualhost *:80>
    ServerName jwp.iptime.org
    LogLevel debug
    ErrorLog ${APACHE_LOG_DIR}/error_vhost_.log
    CustomLog ${APACHE_LOG_DIR}/access_vhost.log combined
   ProxyRequests Off
   ProxyPreserveHost On
   AllowEncodedSlashes NoDecode
   ProxyPass /jenkins http://192.168.0.192:8888/jenkins
   ProxyPassReverse /jenkins http://192.168.0.192:8888/jenkins
   <Proxy *.80>
        Order deny,allow
        Allow from all
   </Proxy>
   <Location />
        Order allow,deny
        Allow from all
  </Location>
</Virtualhost>

#apache #아파치 #프록시 #Proxy #jenkins #젠킨스

Leave a comment

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다