[commits] [Wiki] changed: webserver/nginx
Wiki Guest
wikiguest at horde.org
Sat Jan 10 22:19:18 UTC 2015
guest [188.73.63.111] Sat, 10 Jan 2015 22:19:18 +0000
Modified page: http://wiki.horde.org/webserver/nginx
New Revision: 3
Change log: RJB
@@ -35,8 +35,30 @@
root /path/to/horde/;
index index.php;
location / {
+
+ # Ruud Baart
+ # support for activesync
+ # works for me with Outlook 2013 and Android 5.0.1
+ location /Microsoft-Server-ActiveSync {
+ alias /path/to/horde/rpc.php;
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ fastcgi_pass unix:/var/run/phpcgi/socket;
+ include /etc/nginx/fastcgi.conf;
+ }
+ location /autodiscover/autodiscover.xml {
+ alias /path/to/horde/rpc.php;
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ fastcgi_pass unix:/var/run/phpcgi/socket;
+ include /etc/nginx/fastcgi.conf;
+ }
+ location /Autodiscover/Autodiscover.xml {
+ alias /path/to/horde/rpc.php;
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ fastcgi_pass unix:/var/run/phpcgi/socket;
+ include /etc/nginx/fastcgi.conf;
+ }
location ^~ /static/ {
expires 4w;
add_header Cache-Control public;
@@ -66,9 +88,10 @@
</code>
the file /etc/nginx/fastcgi.conf is included in default nginx installations.
-The socket {{/var/run/phpcgi/socket}} is created by a separate php process.
+The socket {{/var/run/phpcgi/socket}} is created by a separate php
process. The name of the
+socket can differ between the Linux/Unix distributions. For instance
Debian uses /var/run/php5-fpm.sock.
The important thing: nginx must have write access to the socket. So
it's best to run nginx and php with the same uid.
I like to run such processes supervised, aka not forking in
background, by such script:
More information about the commits
mailing list