Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Created June 19, 2017 21:25
Show Gist options
  • Save pandanote-info/dde4dc1d1d2d5507dbd45aa022371d9b to your computer and use it in GitHub Desktop.
Save pandanote-info/dde4dc1d1d2d5507dbd45aa022371d9b to your computer and use it in GitHub Desktop.
Let's encryptから取得した異なるドメインに対するSSL/TLS証明書を同一のWebサーバで共存させて使用するための設定例
# 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