Let's encryptから取得した異なるドメインに対するSSL/TLS証明書を同一のWebサーバで共存させて使用するための設定例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1つめのドメインの設定 | |
<VirtualHost _default_:443> | |
ServerName example.org:443 | |
SSLCertificateFile /etc/letsencrypt/live/example.org/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/example.org/privkey.pem | |
</VirtualHost> | |
# 2つめのドメインの設定 | |
<VirtualHost _default_:443> | |
ServerName www.example.jp:443 | |
SSLCertificateFile /etc/letsencrypt/live/www.example.jp/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/www.example.jp/privkey.pem | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment