OSはCentOS8
modsslインストール
1 |
dnf -y install mod_ssl |
ssl.conf設定
1 2 3 4 5 6 7 8 9 10 |
[root@TZNXCL01 conf.d]# cat ssl.conf | grep -v ^# Listen 443 https SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog SSLSessionCache shmcb:/run/httpd/sslcache(512000) SSLSessionCacheTimeout 300 SSLCryptoDevice builtin |
コンフィグ設定
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<VirtualHost *:443> DocumentRoot /var/www/html/nextcloud/ ServerName nextcloud.vamdemic.net SSLEngine on SSLCertificateChainFile /etc/httpd/cert/chain.pem SSLCertificateFile /etc/httpd/cert/cert.pem SSLCertificateKeyFile /etc/httpd/cert/privkey.pem <Directory /var/www/html/nextcloud/> Require all granted AllowOverride All Options FollowSymLinks MultiViews <IfModule mod_dav.c> Dav off </IfModule> </Directory> </VirtualHost> |