I just upgraded to OMV6, and everything is working, except I can't access the Web-UI under /omv/.
I get a blank, blue screen, and multiple 404 errors in the development console trying to load the js scripts.
I've seen many threads on this topic, but none of them are relevant.
It's running on port 81, and I can access everything else (portainer, and other docker services), just fine under their respective subfolders.
I use the built-in nginx, not a docker container, and have a custom proxy conf under sites-enabled.
After searching for a bit, the issue is the fact the index.html page has <base href="/"> in the header section. This is incompatible with subfolder proxying.
You can see that line here: https://github.com/openmediava…rkbench/src/index.html#L6
We need a configuration option to set the subfolder path, like other applications have.
EDIT:
I was able to work around this by using the following in my proxy config:
location / {
root /var/www/html;
index index.html;
# Lines below were added
if ($http_referer ~* (/omv/) ) {
rewrite ^/(.*)$ /omv/$1 redirect;
}
rewrite ^/assets/(.*)$ /omv/assets/$1 redirect;
}
Downside is this can conflict with the root path (particularly the last line with assets). It doesn't for me, but it's a very hacky solution.