HttpsUpgrade #5

Merged
PhuongDM merged 2 commits from HttpsUpgrade into main 2026-04-04 19:20:44 +07:00
Showing only changes of commit 6ffdf0a286 - Show all commits

View File

@ -5,8 +5,15 @@
# } # }
server { server {
listen 80; 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{ server{