[commits] [Wiki] changed: ActiveSync

Wiki Guest wikiguest at horde.org
Thu Jan 30 22:49:30 UTC 2014


guest [84.227.86.7]  Thu, 30 Jan 2014 22:49:30 +0000

Modified page: http://wiki.horde.org/ActiveSync
New Revision:  239
Change log:  Added mod_proxy_fcgi config for aliases

@@ -30,8 +30,13 @@

  You will need to configure your webserver to redirect the URL  
/Microsoft-Server-ActiveSync to your horde/rpc.php file. How you do  
this depends on your webserver and it's configuration. For Apache,  
something like:
  <code>
  Alias /Microsoft-Server-ActiveSync /var/www/horde/rpc.php
+</code>
+
+For Apache + PHP-FPM using mod_proxy_fcgi
+<code>
+ProxyPassMatch ^/Microsoft-Server-ActiveSync$  
fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fhorde.sock/var/www/html/horde/rpc.php$1
  </code>

  // Note: // It has been reported that when running PHP via mod_fcgid  
on Apache that the Alias directive will not pass the correct URL to  
the fcgid-script handler. This can be worked around by using a  
!RewriteRule instead (adapted from  
http://maurus.net/weblog/2010/10/26/running-z-push-1-4-2-with-apache-and-fastcgifcgid/):
  <code>
@@ -43,9 +48,9 @@
  RewriteRule .* - [E=HTTP_MS_ASPROTOCOLVERSION:%{HTTP:Ms-Asprotocolversion}]
  RewriteRule .* - [E=HTTP_X_MS_POLICYKEY:%{HTTP:X-Ms-Policykey}]
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  </code>
-None of these issues have been reported using lighttpd/fastcgi or  
Apache/php-fpm.
+None of these issues have been reported using lighttpd/fastcgi or  
Apache+mod_fastcgi+php-fpm.

  +++ Autodiscover

  In order for the Autodiscovery service to work, a request to  
/autodiscover/autodiscover.xml needs to reach rpc.php. How it does  
this depends on your specific server setup. Below are a few examples  
to point you in the right direction. Note that for autodiscovery to  
work, the final endpoint MUST be over SSL. Autodiscover requests will  
NOT work without a valid SSL certificate.
@@ -54,8 +59,15 @@
  <code>
  Alias /autodiscover/autodiscover.xml /var/www/horde/rpc.php
  Alias /Autodiscover/Autodiscover.xml /var/www/horde/rpc.php
  Alias /AutoDiscover/AutoDiscover.xml /var/www/horde/rpc.php
+</code>
+
+For Apache + PHP-FPM using mod_proxy_fcgi
+<code>
+ProxyPassMatch ^/autodiscover/autodiscover.xml$  
fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fhorde.sock/var/www/html/horde/rpc.php$1
+ProxyPassMatch ^/Autodiscover/Autodiscover.xml$  
fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fhorde.sock/var/www/html/horde/rpc.php$1
+ProxyPassMatch ^/AutoDiscover/AutoDiscover.xml$  
fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fhorde.sock/var/www/html/horde/rpc.php$1
  </code>

  A more common example is when Horde is running on something like  
mail.example.com while the email addresses are simply @example.com.  
For this, there are two options. First, if example.com is an existing  
site, already runs over HTTPS and is on the same physical server as  
mail.example.com, you could simply use the Alias example above in the  
configuration for the example.com site. Note again, this MUST ALL BE  
OVER SSL.




More information about the commits mailing list