LoginSignup
0
0

More than 5 years have passed since last update.

一つのVPSに複数のサブドメインの証明書を置く(at let's encrypt)

Last updated at Posted at 2018-07-30

ドメイン名:sub.domain.com
DocumentRoot:/var/www/sub.domain.com/index.html

ドメイン名:stage.domain.com
DocumentRoot:/var/www/stage.domain.com/index.html

80ポートを443ポートにリダイレクトしている設定が既にある場合は解除しておく

certbot-autoではうまくいかなかったのでcertbot

# certbot --apache -w /var/www/sub.domain.com -d sub.domain.com -w /var/www/stage.domain.com -d stage.domain.com

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0