How should I set the url prefix for the onlyoffice server ?

99 views Asked by At
 Now I integrate the onlyoffice service into the web front-end pages.I need to redirect the onlyoffce edit page to the url prefixed。 
 example : 
     onlyoffice inside redirect url  :  
       http://domain:port/6.4.0-121/web-apps/apps/presentationeditor/main/index_loader.html
     prefixed onlyoffice inside redirect ulr : 
       http://domain:port/custonPrefix/6.4.0-121/web-apps/apps/presentationeditor/main/index_loader.html

Does anyone know where I can configure the onlyoffce server custom prefix ?

I tried adding editorConfig Param customUrlPrefix to the DocsAPi class, but it did't worked

1

There are 1 answers

0
George ONLYOFFICE On

Virtual paths for the Document Server can only be set using proxy. You can configure Nginx installed with the Document Server on the same server as proxy the following way

Install Document Server on a custom port using the official installation guide.

Run Nginx as proxy on ports 80/443 using this article

Use the following configuration file for Nginx

Link to general information: Using ONLYOFFICE Docs behind the proxy