How can I hide a service behind a proxy with #Apache ?
Like I have @navidrome running on standard port 4533 but I would like to Proxy it behind apache. So when I go to my website(dot)com/music I can reach it (as well with the apps so prolly websockets needs to be configured?).

I’m doing:
ProxyPass /music/ http://127.0.0.1:4533/music/
ProxyPassReverse /music/ http://127.0.0.1:4533/music/

But when i go to mywebsite(dot)com/music it goes to mywebsite(dot)com/app/

WTF?

Apache2 running on #debian

    • RyanM
      link
      fedilink
      1
      edit-2
      6 months ago

      but your proxy config redirects to that path. That sounds wrong, then. unless I don’t get something here. (my reverse proxy is nginx, so …)

      • SolarBrassOP
        link
        fedilink
        16 months ago

        @ryan_harg I wanted to put the service under mysite/music

        The music server works on mysite:port and stop. Can be this the issue?

        • RyanM
          link
          fedilink
          16 months ago

          i think you should loose the path on the right side.

              • SolarBrassOP
                link
                fedilink
                26 months ago

                @ryan_harg well that was the goal I was trying to achieve… but unfortunately doesn’t work. Prolly with BaseUrl in the navidrome conf I can redirect to /music
                Gonna try as soon I got home
                Thanks

                • SolarBrassOP
                  link
                  fedilink
                  2
                  edit-2
                  6 months ago

                  @ryan_harg @breadsmasher I found I can configure a parameter on Navidrome settings called BaseUrl that allowed me to activate Navidrome server under /music so now the proxy works. Thanks a lot

              • RyanM
                link
                fedilink
                16 months ago

                you could also see if you notice requests arriving in the navidrome logs somewhere…