MineOS Reverse Proxy (Apache2) [How To]

Hello,
As the title says, I’m attempting to reverse proxy MineOS with Apache2, exactly as in Issue 3494

Now I’ve got an LetsEncrypt certificate securing my domain, and I want to forward [Domain].com/mineos to the server.
Currently I’m attempting to use:

ProxyPass /mineos http://localhost:8443

 <Location /mineos>
    ProxyPassReverse /
    ProxyPassReverseCookiePath / /mineos
    RequestHeader set X-MineOS-Base "/mineos"
    Order allow,deny
    Allow from all
</Location>

This unfortunately forwards [Domain].com/mineos to [Domain].com/mineosadmin/index.html as you can see, missing the backslash.
Normally, manually adding a backslash fixes it, but what’s going on?
Where is my syntax going wrong?

Everything works perfectly when I use my External IP, but falls apart with my domain.
I’ve commented out both the ssl certificates and turned use_https = false

Well, after a bunch of messing around, here’s the workaround I use:

<Location /mineos/>
    ProxyPreserveHost On
    RequestHeader set X-Jackett-Base "/mineos/"
    ProxyPass http://127.0.0.1:8443/
    ProxyPassReverse /
</Location>

The difference is simply the added backslash in location.

Now when trying to access the UI from your domain, make sure to use:
[Domain].com/mineos/ with the extra backslash, this makes sure Apache proxies it correctly.

1 Like