ZD + Nextcloud behind reverse proxy apache

All about Zimbra Drive
EdG973
Posts: 3
Joined: Tue Jan 14, 2020 12:10 pm

ZD + Nextcloud behind reverse proxy apache

Postby EdG973 » Tue Jan 14, 2020 12:21 pm

Hello,

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 "https://reverseproxy....mondomain.fr/" "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 :
viewtopic.php?t=63432
But it does not give solution.

May someone have a solution to my issue ?

Best Regards,


EdG973
Posts: 3
Joined: Tue Jan 14, 2020 12:10 pm

Re: ZD + Nextcloud behind reverse proxy apache

Postby EdG973 » Tue Jan 14, 2020 3:26 pm

I notice that URL for an image is not correct when usin the reverse proxy :
https://reverseproxy.mydomain.com/servi ... viewonly=1 <<<= this is wrong

The right URL must be :
https://reverseproxy.mydomain.com/servi ... 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 ?
EdG973
Posts: 3
Joined: Tue Jan 14, 2020 12:10 pm

Re: ZD + Nextcloud behind reverse proxy apache

Postby EdG973 » Wed Jan 15, 2020 12:51 pm

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 "smtp.mydomain.md" as Zimbra server, and "mydomain.md" as domain
So should I add a virtualhost "webmail.mydomain.md" in Zimbra ?

Then change my DNS / Router setting to point to the new ip of "webmail.mydomain.md" 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 webmail.mydomain.md ? Will i have to add them in the Zimbra server ?

Best Regards,

Return to “Zimbra Drive”

Who is online

Users browsing this forum: No registered users and 4 guests