mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Solved Matomo domain bug and refactored
This commit is contained in:
6
roles/nginx-redirect-www/templates/www.wildcard.conf.j2
Normal file
6
roles/nginx-redirect-www/templates/www.wildcard.conf.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
server {
|
||||
server_name ~^www\.(?<domain>.+)$;
|
||||
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
||||
|
||||
return 301 https://$domain$request_uri;
|
||||
}
|
Reference in New Issue
Block a user