ProxyPass with zimbra
ProxyPass can be used to to
redirect internally. I’ll explain it with debian etch on the previous
entry you can read how to install zimbra. There for this is based on
the current zimbra installation on a other server.
I have one main server and 2 virtual servers installed. The main
server is the web server with apache2 and one of the virtual servers in
the zimbra mail server. this is the base of the installation. The need
of proxypass has occured for me, because I have only one public IP.
Since zimbra mail runs on port 80 and also the main webserver runs on
port 80. I use ProxyPass.
Installation
The installation of proxypass is simple you only need to enable a few modules:
a2enmod proxy
a2enmod proxy_http
a2enmod rewrite
You have to do this on the server you want to use as webserver.
Configuration
You need to adjust /etc/apache2/mods-enabled/proxy.conf. I will use
zimbra.example.com as the url you can use as subdomain for the main
webserver.
<IfModule mod_proxy.c>
 ProxyRequests Off
 <Proxy *>
   AddDefaultCharset off
   Order deny,allow
   Deny from all
   Allow from zimbra.example.com
   Allow from zimbraadmin.example.com
 </Proxy>
 ProxyVia Full
</IfModule>
As you have done the changes, save them. Now you can add a new site that makes use of the new ProxyPass.
For zimbra Admin:
<VirtualHost *:80>
ServerName zimbraadmin.example.be
ServerAdmin admin@example.com
RewriteEngine On
ProxyPassReverse / https://zimbrahost:7071/
ProxyPass / https://zimbrahost:7071/
SSLProxyEngine On
</VirtualHost>
For zimbra webmail:
<VirtualHost *:80>
ServerName zimbra.example.be
ServerAdmin admin@example.com
RewriteEngine On
ProxyPassReverse / http://zimbrahost/
ProxyPass / http://zimbrahost/
SSLProxyEngine On
</VirtualHost>
After you saved it and restart the apache2 server. I’t should be working.