diff --git a/roles/libravatar/templates/httpd/libravatar.conf b/roles/libravatar/templates/httpd/libravatar.conf index 5e87fde7e7..f8b97e211e 100644 --- a/roles/libravatar/templates/httpd/libravatar.conf +++ b/roles/libravatar/templates/httpd/libravatar.conf @@ -14,7 +14,7 @@ RewriteEngine on ServerName {{ server_name }} ServerAlias {{ server_redirect_name }} RewriteRule ^/\.well-known/(.*) /var/www/html/.well-known/$1 [L] - RewriteRule "^/?(.*)" "https://{{ server_name }}/$1" [L,R=301,NE] + RewriteRule "^/?(.*)" "https://%{HTTP_HOST}/$1" [L,R=301,NE]