10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EC2にリバースプロキシを使ってjenkinsを構築する

Last updated at Posted at 2014-04-17

EC2上にjenkinsを一から構築したのでその手順


jnekinsインストール

$ sudo cp /etc/sysconfig/jenkins{,.org}
$ sudo vi /etc/sysconfig/jenkins
$ sudo diff /etc/sysconfig/jenkins{.org,}
133c133
< JENKINS_ARGS=""
---
> JENKINS_ARGS="--prefix=/jenkins"

httpdインストール

$ sudo yum install httpd -y
$ sudo vi /etc/httpd/conf.d/jenkins.conf
ProxyPass        /jenkins http://localhost:8080/jenkins nocanon
ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyRequests    off
AllowEncodedSlashes NoDecode

<Proxy http://localhost:8080/jenkins*>
  Order deny,allow
  Allow from all
</Proxy>

起動

$ sudo /etc/init.d/jenkins start
$ sudo /etc/init.d/httpd start

自動起動

$ sudo chkconfig jenkins on
$ sudo chkconfig httpd on
10
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?