Jellyfin Forum
502 Error with IIS URL rewrite - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: 502 Error with IIS URL rewrite (/t-502-error-with-iis-url-rewrite)



502 Error with IIS URL rewrite - Ru8ey - 2024-02-23

Hi,
im running into an issue and hoping someone here can help, im trying to get jellyfin instance to be accessible via HTTPS on a windows server (both in one machine), i have IIS installed and was trying to get the URL rewrite to work to use the default server web page as a reverse proxy as from what i read online thats supposedly the easiest way, especially considering the server is currently already reachable via HTTPS without any security warnings. Im not the biggest expert on all this and i inherited the responsibility for this home server after my father passed away which is why it already has a working HTTPS setup without me knowing much about it..

Now the problem is as soon as i make the URL rewrite rule active, when i navigate to the DynDNS adress port 443 of my server i get a 502 error, from what i understand its saying that the homeserver was trying to proxy to the jellyfin, but that didnt respond properly... when i try to locally go onto the jellyfin it works fine.

Any ideas where i can check? or where to look for more detailed logs even, if there is any logs i can provide ill gladly do so.
Help is much appreciated


RE: 502 Error with IIS URL rewrite - TheDreadPirate - 2024-02-23

We have a guide for IIS here.

https://jellyfin.org/docs/general/networking/iis/

You're the second IIS users I've seen posted here since this forum opened last June. So I'm not sure how many people are expert enough to help.


RE: 502 Error with IIS URL rewrite - Ru8ey - 2024-02-23

Thanks! i will check it out and see if i made any obvious mistakes from there..


RE: 502 Error with IIS URL rewrite - Ru8ey - 2024-02-23

Im sorry if my knowledge is far below what is usual here but im struggling to understand where those configurations and the web.config would even go..

Ah i figured the powershell part out at least, didnt use that in ages


RE: 502 Error with IIS URL rewrite - Ru8ey - 2024-02-23

OH MY GOD you made my day man, THANK YOU so much i was struggling for HOURS on this, THANKSSSSS!!!! configured the IIS with powershell and replaced the default websites web.config with the guide and it works now!
Have a great evening!