株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

OSはCentOS8

modsslインストール

dnf -y install mod_ssl

ssl.conf設定

[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

コンフィグ設定

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

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)