Revese proxy problem

I want to run the jellyfin server under a sub directory behind reverse proxy. After reading docs in , I did some configuration as follows,it just can’t work right:

ProxyPreserveHost On

            ProxyPass "/socket" "ws://"
            ProxyPassReverse "/socket" "ws://"

            ProxyPass "/jellyfin" ""
            ProxyPassReverse "/jellyfin" ""

when I type in in browser, it jumps to with a 404 error. If I change it manually to, I can get access to jellyfin.
info as follow:

server: apache2.4
https: enabled
http redirect to https: enabled

How to make jump to the correct url?

Ahh the setting you’re looking for is called “Base URL”, and it’s a change you make inside Jellyfin, not the Apache config.

Go to the Dashboard, and scroll down to Networking. It’s in there. Once you change it, restart Jellyfin. Note that some clients don’t work with this, like Sonarr and Radarr.

Actually I’ve tried that but it didn’t work. However, I managed to set up a reverse proxy by using another second-level domain and proxy the 8096 port to a new domain. Thank you anyway.