Page 1 of 1

ZD + Nextcloud behind reverse proxy apache

Posted: Tue Jan 14, 2020 12:21 pm
by EdG973

I have successfully configured a zimbra server (open source 8.8.15) with a Nexcloud 17
But my access to zimbra webmail is set with a reverse proxy apache front to the internet :
Internet <====> reverse proxy https <======> zimbra webmail https <== Zimbra Drive ==> Nextcloud

I have noticed a problem to previews image an pdf from web browser with ZD when using the reverse proxy, previews of image and pdf are failing (upload and download of files are working), here is the log apache of reverse proxy server :
10.9.x.x - - [13/Jan/2020:20:42:40 -0300] "GET /service/extension/ZimbraDrive_Download/TEST/test.docx?errorcallback=ZmZimbraDrivePreviewView._errorCallback&previewcallback=ZmZimbraDrivePreviewView._previewCallback&viewonly=1 HTTP/1.1" 200 186 "" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"

It is weird because previews are working good when using directly zimbra webmail (without passing through the reverse proxy)...

I have found this link about the same issue :
But it does not give solution.

May someone have a solution to my issue ?

Best Regards,

Re: ZD + Nextcloud behind reverse proxy apache

Posted: Tue Jan 14, 2020 3:26 pm
by EdG973
I notice that URL for an image is not correct when usin the reverse proxy : ... viewonly=1 <<<= this is wrong

The right URL must be : ... viewonly=1
This URL display the preview image from Nexcloud in the web browser

Apprently, there is =ZmZimbraPreviewView._errorCallback&previewcallback added to the URL in reverse proxy

How to forge correct URL ?

Re: ZD + Nextcloud behind reverse proxy apache

Posted: Wed Jan 15, 2020 12:51 pm
by EdG973
Is there nobody to help me ?

Maybe my idea to set a reverse proxy for internet access front my Zimbra server was not good.

Maybe I should remove this reverse proxy and add a virtualhost to my zimbra domain ?

I set "" as Zimbra server, and "" as domain
So should I add a virtualhost "" in Zimbra ?

Then change my DNS / Router setting to point to the new ip of "" on zimbra server ?
Does it make sense because the goal of the reverse proxy is to hide my Zimbra server from internet ?...
If I point directly to the ZImbra server, what about security ?
And what about the certificates for ? Will i have to add them in the Zimbra server ?

Best Regards,