「Xserver VPSでDebianサーバ構築/Webサーバ設定」の版間の差分
ナビゲーションに移動
検索に移動
(→概要) |
(→設定) |
||
12行目: | 12行目: | ||
= 設定 = |
= 設定 = |
||
== Apache設定 == |
|||
次のコマンドは、次項のcertbotコマンドにより有効化されるので、実行は不要である。 |
|||
<nowiki> |
|||
$ sudo a2enmod ssl |
|||
$ sudo a2enmod rewrite |
|||
$ sudo systemctl restart apache2 |
|||
</nowiki> |
|||
== Let's Encrypt設定 == |
== Let's Encrypt設定 == |
2023年4月21日 (金) 03:15時点における版
概要
次の表のとおりである。
Webサーバ | Apache |
証明書 | Let's Encrypt |
設定
Apache設定
次のコマンドは、次項のcertbotコマンドにより有効化されるので、実行は不要である。
$ sudo a2enmod ssl $ sudo a2enmod rewrite $ sudo systemctl restart apache2
Let's Encrypt設定
次のコマンドを実行する。
$ sudo apt install python3-certbot-apache $ sudo certbot --apache