前提条件
- 準備
=======
0.1. AMI設定情報ディレクトリの指定
変数の指定
DIR_CONF_AMI='config-ami-handson-20170213'
コマンド
mkdir -p ${DIR_CONF_AMI}
- 事前作業
===========
1.1. Apache設定ファイルの指定
変数の設定
FILE_INPUT="${DIR_CONF_AMI}/httpd-redmine.conf" \
&& echo ${FILE_INPUT}
- Apacheの設定ファイル作成 (Redmine部分)
=========================================
コマンド
cat << EOF > ${FILE_INPUT}
<Directory "/var/lib/redmine/public">
Require all granted
#Order allow,deny
#Allow from all
</Directory>
# remove Passenger additional HTTP headers
#
Header always unset "X-Powered-By"
Header always unset "X-Runtime"
# Passenger tuning
# (https://www.phusionpassenger.com/library/config/apache/reference/)
PassengerMaxPoolSize 20
PassengerMaxInstancesPerApp 4
PassengerPoolIdleTime 864000
PassengerHighPerformance on
PassengerStatThrottleRate 10
PassengerSpawnMethod smart
PassengerFriendlyErrorPages off
RackBaseURI /redmine
EOF
cat ${FILE_INPUT}
- 事後作業
===========