From 33cd329706d9dbbd3ebee5b3928b44c61c7ebe77 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 3 Jun 2023 10:19:53 +0900 Subject: [PATCH] Modify `default` config. --- sites-available/default | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sites-available/default b/sites-available/default index 2aea57b..99e1866 100644 --- a/sites-available/default +++ b/sites-available/default @@ -1,9 +1,11 @@ # Denies the access without the pre-defined virtual host. server { listen 80 default_server; + listen 443 ssl default_server; server_name _; - location / { - return 444; - } + ssl_certificate /etc/lego/.lego/certificates/_.kazu634.com.crt; + ssl_certificate_key /etc/lego/.lego/certificates/_.kazu634.com.key; + + return 444; }