1. ベーシック認証
1.1. htpasswd設定
# cd /var/lib/redmine/public
# htpasswd -c -b .htpasswd test testpw
1.2. 所有者変更
# chown apache:apache .htpasswd
#ls -al
-rw-r--r-- 1 apache apache 43 6月 19 23:46 .htpasswd
1.3. redmine.confの編集
# cd /etc/httpd/conf.d
# vi redmine.conf
赤文字の箇所追加
-------------------------------------------------------------------------------
<Directory "/var/lib/redmine/public">
Require all granted
</Directory>
# 以下のLocationを追加
<Location />
AuthType Basic
AuthName "Please UserID and Password"
AuthUserFile "/var/lib/redmine/public/.htpasswd"
Require valid-user
</Location>
-------------------------------------------------------------------------------
1.4. apache再起動
# systemctl restart httpd