Include following lines to the https->http proxy virtual host
SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader set X-Forwarded-Proto https
ProxyAddHeaders Off
NextCloud and OnlyOffice Behind Apache Reverse Proxy Re ONLYOFFICE/DocumentServer was last modified: April 24th, 2020 by