diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4d5081d..cece815 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -5,8 +5,15 @@ # } server { listen 80; - return 301 https://$host$request_uri; # Redirect HTTP sang HTTPS - + server_name comp.soict.io; + + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + + location / { + return 301 https://$host$request_uri; + } } server{