Guten Tag Liebe Community,
ich versuche schon seit mehreren Tagen einen Reverse Proxy in betrieb zu nehmen, leider ohne Erfolg.
System = Ubuntu 24.04
Webserver = Apache2
Auf dem System läuft Jellyfin auf Port 8096.
Ich möchte den Server gerne von außen (Internet) erreichbar machen. Das ganze funktioniert auch schon aber mir wird immer die Standardseite von Apache2 angezeigt.
Was mache ich falsch!?!?!?
Die angepasste Config sieht wie folgt aus:
<VirtualHost *:80> ServerName media.hwdomain.io # Comment to prevent HTTP to HTTPS redirect Redirect permanent / https://media.hwdomain.io/ ErrorLog /var/log/apache2/media.hwdomain.io-error.log CustomLog /var/log/apache2/media.hwdomain.io-access.log combined </VirtualHost> # If you are not using an SSL certificate, replace the 'redirect' # line above with all lines below starting with 'Proxy' <IfModule mod_ssl.c> <VirtualHost *:443> ServerName media.hwdomain.io # This folder exists just for certbot(You may have to create it, chown and chmod it to give apache permission to read it) DocumentRoot /var/www/html/jellyfin/public_html ProxyPreserveHost On # Letsencrypt's certbot will place a file in this folder when updating/verifying certs # This line will tell Apache to not to use the proxy for this folder. ProxyPass "/.well-known/" "!" # Tell Jellyfin to forward that requests came from TLS connections RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Port "443" ProxyPass "/socket" "ws://192.168.5.30:8096/socket" ProxyPassReverse "/socket" "ws://192.168.5.30:8096/socket" ProxyPass "/" "http://192.168.5.30:8096/" ProxyPassReverse "/" "http://192.168.5.30:8096/" SSLEngine on SSLCertificateFile /etc/letsencrypt/live/media.hwdomain.io/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/media.hwdomain.io/privkey.pem Protocols h2 http/1.1 # Enable only strong encryption ciphers and prefer versions with Forward Secrecy SSLCipherSuite HIGH:RC4-SHA:AES128-SHA:!aNULL:!MD5 SSLHonorCipherOrder on # Disable insecure SSL and TLS versions SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 ErrorLog /var/log/apache2/media.hwdomain.io-error.log CustomLog /var/log/apache2/media.hwdomain.io-access.log combined </VirtualHost> </IfModule>
Wenn ich die Anfrage mit sudo systemctl status apache2 mache kommt auch das alles Läuft
● apache2.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled) Active: active (running) since Fri 2024-10-18 07:57:57 UTC; 8s ago Docs: https://httpd.apache.org/docs/2.4/ Process: 22468 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Main PID: 22471 (apache2) Tasks: 105 (limit: 9335) Memory: 10.2M (peak: 11.0M) CPU: 92ms CGroup: /system.slice/apache2.service ├─22471 /usr/sbin/apache2 -k start ├─22473 /usr/sbin/apache2 -k start └─22474 /usr/sbin/apache2 -k start
Das ganze habt ich von dieser Anleitung aus erstellt: https://www.howtoforge.de/anleitung/so-installierst-du-jellyfin-media-server-unter-ubuntu-22-04/
Vielen Dank schon mal.
Grüße Michi
Bearbeitet von Thomas_Do:
Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern!
Bearbeitet von Thomas_Do:
Forensyntax korrigiert.