Implemented wildcard function for www redirects and solved bugs

This commit is contained in:
2025-02-03 18:10:07 +01:00
parent ccc87ad24b
commit 734d4f8ed3
13 changed files with 92 additions and 20 deletions

View File

@@ -0,0 +1,6 @@
server {
server_name ~^www\.(?<domain>.+)$;
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
return 301 https://$domain$request_uri;
}