# Update the following existing config lines
date_default_timezone_set("Europe/London"); # Or use whatever Unix style time-zone that's appropriate for you
define('PROVISIONING', false);
$BACKEND_PROVIDER = "BackendZimbra";
# Add the following config lines
define('ZIMBRA_DEBUG',true);
define('ZIMBRA_URL', '');(修改为zimbra的地址,也可以是http,不一定是httpd,要指向zimbra的客户登录页面) # Update with you Zimbra server hostname
define('ZIMBRA_USER_DIR', 'zimbra');
define('ZIMBRA_SYNC_CONTACT_PICTURES', true);
define('ZIMBRA_VIRTUAL_CONTACTS',true);
define('ZIMBRA_VIRTUAL_APPOINTMENTS',true);
define('ZIMBRA_VIRTUAL_TASKS',true);
define('ZIMBRA_IGNORE_EMAILED_CONTACTS',true);
define('ZIMBRA_HTML',true);
VirtualHost *:80>
ServerAdmin info@as.domain.com
ServerName as.domain.com
# Indexes + Directory Root.
DirectoryIndex index.php
DocumentRoot /var/www/z-push/
Alias /Microsoft-Server-ActiveSync /var/www/z-push/index.php(还有添加这一行,使之支持ActiveSync)
AllowOverride All(修改None为ALl)
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag magic_quotes_runtime off
php_flag short_open_tag on
添加以上四行到httpd.conf
# Logfiles - you'll need to create the paths if they don't exist already
ErrorLog /var/log/apache2/z-push/error.log
CustomLog /var/log/apache2/z-push/access.log combined