catch_all redirects to https

This commit is contained in:
Fabio Sinibaldi 2025-03-11 16:59:08 +01:00
parent 8cef1d5c17
commit 406a140843
1 changed files with 2 additions and 7 deletions

View File

@ -103,15 +103,10 @@ http {
}
#Default Catch-all serving
#Default Catch-all redirects to https
server {
listen 80 default_server;
server_name _;
root /var/www/default;
location /{
try_files $uri /$uri /index.html;
}
return 301 https://$host$request_uri;
}
}