hey @Hason
Virtual paths for the Document Server can be set only using proxy.
Nginx installed with the Document Server on the same server to be configured as proxy.
-
Install Document Server on a custom port using the official installation guide.
-
Run Nginx as proxy on ports 80/443 using this article https://github.com/ONLYOFFICE/document-server-proxy/tree/master/nginx#readme
-
Use the following configuration file for Nginx https://github.com/ONLYOFFICE/document-server-proxy/blob/master/nginx/proxy-to-virtual-path.conf
Link to general information: Using ONLYOFFICE Docs behind the proxy - ONLYOFFICE