Getting crazy with Onlyoffice+NC17+reverse proxy


I’m not able to integrate my OnlyOffice Document Server, when I try to configure the App it shows a error, this is the log:

“method”:“PUT”,“url”:"/index.php/apps/onlyoffice/ajax/settings/address",“message”:“GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Error while downloading the document file to be converted.”

The problem is only inside my Lan, if I configure a NC instance outside my lan using my DocServer all works ok, but if I try to run in my local NC instance allways fail.

This is my scenary:

Proxy server: internal IP, listen to redirected to and redirected to, both works ok.

Nextcloud server : internal IP

Document Server: internal IP

Apache (proxy server) configuration:

<VirtualHost *:443>
        <IfModule mod_headers.c>
                Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass /
        ProxyPassReverse /
        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/
        SSLCertificateKeyFile /etc/letsencrypt/live/
<Virtualhost *:443>
        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/
        SSLCertificateKeyFile /etc/letsencrypt/live/
        SSLCertificateChainFile /etc/letsencrypt/live/myofficecom/chain.pem
        SSLProtocol All -SSLv2 -SSLv3
        SSLCompression off
        SSLHonorCipherOrder on

        SetEnvIf Host "^(.*)$" THE_HOST=$1
        RequestHeader setifempty X-Forwarded-Proto https
        RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
        ProxyAddHeaders Off

        ProxyPassMatch (.*)(\/websocket)$ "ws://$1$2"
        ProxyPass / ""
        ProxyPassReverse / ""

Nextcloud configuration:

'trusted_domains' => 
  array (
    0 => '',
    1 => '',
  'overwrite.cli.url' => '',
  'overwritehost' =>'',
  'overwriteprotocol' => 'https',
  'trusted_proxies' => 
  array (
    0 => '',
  'forwarded_for_headers' => 
  array (

Any hint?

You should use always the connection over DNS if this works… :wink: