diff --git a/roles/jellyfin/templates/jellyfin.httpd.conf.j2 b/roles/jellyfin/templates/jellyfin.httpd.conf.j2 index af6cb97..620eb1f 100644 --- a/roles/jellyfin/templates/jellyfin.httpd.conf.j2 +++ b/roles/jellyfin/templates/jellyfin.httpd.conf.j2 @@ -3,6 +3,7 @@ RewriteEngine On RewriteCond %{HTTPS} !on + RewriteCond %{SERVER_NAME} {{ jellyfin_server_name }} RewriteRule /.* https://%{SERVER_NAME}$0 [R=301,L]