Page 1 of 1

English nginx with virtual path

Posted: Fri Dec 21, 2018 2:40 pm
by triton-oidc

I'm trying to use onlyoffice behind a proxy, it works like a charm on the root directory, but when i want to use a virtual PATH, as describe in ... -path.conf

When i go on the url : http://myserver/documentserver-virtual-path/
I get redirected to http://myserver/auth.aspx
instead of

Nginx answer a 404 not found. As the url is missing the documentserver-virtual-path it makes sens

My nginx run on docker
docker run --name just-nginx --rm -i -t -p 80:80 -v /[PATH]/proxy-to-virtual-path.conf:/etc/nginx/conf.d/proxy-to-virtual-path.conf:ro -v /[PATH]/empty_file.conf:/etc/nginx/conf.d/default.conf:ro nginx

onlyoffice :
nginx version: nginx/1.15.7
built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
Docker version 1.12.6, build 78d1802

If i'm not on the correct section, apologies (and tell me in wich section should i ask this)

If someone could confirm to be that the nginx configuration file, is not up to date, or that it's not working somewhere else : that could save me a lot of time.

Should i find the solution on my own : i'll post it here.

Thanks for any help

PS: i'm leaving for a 4 week vacation this evening so i won't answer quickly