報告書 #1223
VirtualHost設定&SSL適用
ステータス: | 新規 | 開始日: | 2017/11/29 |
---|---|---|---|
優先度: | 通常 | 期日: | |
担当者: | - | 作業時間の記録: | - |
カテゴリ: | - |
説明
【Virtualhostで設定したドメインにSSLを当てる作業】 (※ITKiDSサーバーで上手くいったもの) 【mod_sslが無かったら入れる】 # yum list installed mod_ssl # yum install mod_ssl 【httpd.conf】 --------------------------------------- NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> DocumentRoot /var/www/html/wordpress ServerName itkids.club <Directory> Options FollowSymLinks MultiViews AllowOverride All </Directory> ErrorLog logs/error_log CustomLog logs/access_log combined <VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/html/lp ServerName lp.itkids.club ErrorLog logs/error_log CustomLog logs/access_log combined <VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/itkids_web/app ServerName pictcode.itkids.club <Directory> Options FollowSymLinks MultiViews AllowOverride All </Directory> ErrorLog logs/pictcode.itkids.club-error_log CustomLog logs/pictcode.itkids.club-access_log combined <VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/itkids_admin/app ServerName pictcode-admin.itkids.club <Directory> Options FollowSymLinks MultiViews AllowOverride All </Directory> ErrorLog logs/pictcode-admin.itkids.club-error_log CustomLog logs/pictcode-admin.itkids.club-access_log combined <VirtualHost> --------------------------------------- 【ssl.conf】 --------------------------------------- <Virtualhost *:443> DocumentRoot "/var/www/html/lp" ServerName lp.itkids.club:443 SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW SSLCertificateFile /etc/httpd/conf.d/ssl/lp.itkids.club.crt SSLCertificateKeyFile /etc/httpd/conf.d/ssl/lp.itkids.club.nopass.key SSLCertificateChainFile /etc/httpd/conf.d/ssl/lp.itkids.club.cer SSLCACertificateFile /etc/httpd/conf.d/ssl/lp.itkids.club.cer </Virtualhost> --------------------------------------- 【忘れずに】 service httpd restart