r/jellyfin: Restrict HTTPS redirect to Jellyfin
Since Jellyfin is running on the file server, which also hosts a few other websites that do not define virtual hosts, the HTTP-to-HTTPS redirect was applied to *all* requests. To avoid this, we simply add a rewrite condition so that the redirect only applies to requests for Jellyfin.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} !on
|
||||
RewriteCond %{SERVER_NAME} {{ jellyfin_server_name }}
|
||||
RewriteRule /.* https://%{SERVER_NAME}$0 [R=301,L]
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user