Siga este link: link
Eu fiz proxies com sucesso do Zimbra usando o Apache2 por muito tempo.
Estes comandos funcionam em servidores Debian / Ubuntu.
Primeiro, ative os módulos do apache2:
a2enmod proxy
a2enmod proxy_html
a2enmod proxy_http
Certifique-se de que o uso de mod_proxy é permitido, alterando /etc/apache2/mods_available/proxy.conf
Allow from all
Neste caso eu quero proxy SSL, então antes de começar você precisará mover o Zimbra HTTPS para longe da porta 443 (eu mudei para o 444). Copie seus arquivos de certificado Zimbra para um diretório acessível pelo apache. Eu escolho / etc / apache2 / ssl.
Para permitir o redirecionamento automático de / para / zimbra, como em sua instalação normal do Zimbra, adicione a seguinte linha à sua principal sub-rotina:
RedirectMatch ^/$ /zimbra/
Then, edit you apache2 config file and add:
SSLProxyEngine on
SSLCertificateFile /etc/apache2/ssl/host.crt
SSLCertificateKeyFile /etc/apache2/ssl/host.key
SSLCACertificateFile /etc/apache2/ssl/ca_bundle.crt
ProxyRequests On
ProxyPreserveHost On
ProxyVia full
<Location "/service">
ProxyPass https://your_zimbra_ip:444/service
ProxyPassReverse https://your_zimbra_ip:444/service
ProxyPassReverse /
ProxyHTMLExtended On
ProxyHTMLURLMap /service /service
</Location>
<Location "/zimbra">
ProxyPass https://your_zimbra_ip:444/zimbra
ProxyPassReverse https://your_zimbra_ip:444/zimbra
ProxyPassReverse /
ProxyHTMLExtended On
ProxyHTMLURLMap /zimbra /zimbra
</Location>
<Location "/home">
ProxyPass https://your_zimbra_ip:444/home
ProxyPassReverse https://your_zimbra_ip:444/home
ProxyPassReverse /
ProxyHTMLExtended On
ProxyHTMLURLMap /home /home
</Location>
# CalDAV
<Location "/principals">
ProxyPass https://your_zimbra_ip:444/principals
ProxyPassReverse https://your_zimbra_ip:444/principals
ProxyPassReverse /
ProxyHTMLExtended On
ProxyHTMLURLMap /principals /principals
</Location>
# DAV
<Location "/dav">
ProxyPass https://your_zimbra_ip:444/dav
ProxyPassReverse https://your_zimbra_ip:444/dav
ProxyPassReverse /
ProxyHTMLExtended On
ProxyHTMLURLMap /dav /dav
</Location>
#Printing and HTML interface
<Location "/h">
ProxyPass https://your_zimbra_ip:444/h
ProxyPassReverse https://your_zimbra_ip:444/h
ProxyPassReverse /
ProxyHTMLExtended On
ProxyHTMLURLMap /h /h
</Location>
# img for mobile interface
<Location "/img">
ProxyPass https://your_zimbra_ip:444/img
ProxyPassReverse https://your_zimbra_ip:444/img
ProxyPassReverse /
ProxyHTMLExtended On
ProxyHTMLURLMap /img /img
</Location>
Reinicie seu apache2 e você deve terminar! P.S. caso você queira fazer o proxy https:
a2enmod ssl
Adicione o seguinte ao seu / etc / apache2 / sites-available / default-ssl
SSLProxyEngine on
ProxyRequests On
ProxyPreserveHost On
ProxyVia full