16
16

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.

Jenkins+Apache連携(AJP) メモ

Posted at

・ポート8080は閉じておきたい
・AJPポート8009は別サービスで使用中

■Jenkins側設定
vi /etc/sysconfig/jenkins
ポート8080を閉じる
#JENKINS_PORT="8080"
JENKINS_PORT="-1”

AJPポートを変更する(他のサービスとかぶらないように)
#JENKINS_AJP_PORT="8009"
JENKINS_AJP_PORT="9009"

Apache側で/jenkinsディレクトリにJenkinsを割り当てるためにJenkins側でもパス解決
#JENKINS_ARGS=""
JENKINS_ARGS="--prefix=/jenkins”

■Apache側設定
vi /etc/httpd/conf.d/jenkins.conf
以下の内容を記載する
ProxyPass /jenkins ajp://localhost:9009/jenkins
ProxyPassReverse /jenkins ajp://localhost:9009/jenkins
ProxyRequests Off

Order deny,allow
Allow from all

16
16
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
16
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?