• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access SOLVED: Apache + Clouflare + JellyFin; I need help setting up this.

     
    • 0 Vote(s) - 0 Average

    SOLVED: Apache + Clouflare + JellyFin; I need help setting up this.

    Hello everyone please help me fixing my issue.
    FLKS
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Sep
    Reputation: 0
    Country:Portugal
    #1
    2023-09-28, 08:58 PM
    Hello everyone and thanks for the help.
    I have a domain in cloudflare, and a host pc with jellyfin and apache.
    Apache is listing on port 80 (HTTP) and 443 (HTTPS). JellyFin is listening on port 8096 (HTTP) and 8920(HTTPS).
    My cloudflare domain is targeting my public ip adress that my jellyfin server is on.

    With this said i need help using a subdomain to go to my normal apache page (www.domain.com) and another one to go to the jellyfin server (jelly.subdomain.com).
    How do I achieve this?
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-09-28, 09:03 PM
    I think its as simple as setting the ServerName field to include the subdomain for the jellyfin reverse proxy listener.

    Code:
    ServerName jellyfin.domain.com
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    FLKS
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Sep
    Reputation: 0
    Country:Portugal
    #3
    2023-09-28, 09:22 PM (This post was last modified: 2023-09-28, 09:22 PM by FLKS. Edited 1 time in total.)
    Hello and thanks for the response. Where do I put that?.
    In my /etc/apache2/sites-avaliable/000-default.conf I already tried adding this to the file:
    <VirtualHost *:80>
    ServerName jelly.domain.com
    ProxyPreserveHost On
    ProxyPass / http://192.168.1.100:8096
    ProxyPassReverse / http://192.168.1.100:8096
    </VirtualHost>
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-09-28, 09:38 PM (This post was last modified: 2023-09-28, 10:08 PM by TheDreadPirate. Edited 1 time in total.)
    That is the correct file. Once you add it you will need to reload apache.

    Code:
    systemctl reload apache2

    I also run apache, but I don't use a subdomain. If that doesn't work, I will figure it out on mine.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2023-09-29, 02:36 AM
    I have not been able to figure this out tonight. I will get back to you. Probably sometime this weekend.

    There is a way, just need to figure out the syntax.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    FLKS
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Sep
    Reputation: 0
    Country:Portugal
    #6
    2023-09-29, 04:17 PM
    Hello again and sorry if I waste your time, i tried adding that to the file and other things, the truth is i used various solutions without any sucess. My Machine that is hosting the site is Debian12 (if this give any revelant info).
    FLKS
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Sep
    Reputation: 0
    Country:Portugal
    #7
    2023-09-29, 04:49 PM
    Hi again i found my problem. Well it was pretty simple. After 1 week i found my problem and it was on the 000-default.conf i didn't read the comment " # However, you must set it for any further virtual host explicitly.".
    The fix for my problem was on 000-default.conf on VirtualHost *:80 i needed to change the ServerName from www.example.com to www.domain.com.

    I hope everyone has a good day Smiling-face
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode