[sync] Carddav with nginx

Andreas Schneider as at schneider-pc.ch
Mon Dec 11 22:10:22 UTC 2017


  simple typo error  ... rpc.php/addressbooks works rpc.php/adressbooks doesn't

i should read my own mail better..

 

----- Nachricht von Andreas Schneider <as at schneider-pc.ch> ---------
  Datum: Thu, 07 Dec 2017 18:24:12 +0100
    Von: Andreas Schneider <as at schneider-pc.ch>
Betreff: Carddav with nginx
     An: sync <sync at lists.horde.org>

> Hi
>
> My problem is that carddav doesn't work with nginx
>
> it must be nginx.. because on the same Server same  
> File-Location/mysql//php-fpm/ssl (but other IP) runs a apache 2.4   
> where carddav works
>
> in the horde wiki i found a example https://wiki.horde.org/webserver/nginx
>
> I adapted for my freebsd box:
>
> I added  /rpc.php/principals
> and /rcp.php/calendars
>
> (and ../addressbooks ... but doesnt work)
>
> Activesync work
> Caldav works
> Carddav not (testet with opensync (android)
>
> Some hints?
>
> my nginx.conf:
>
>       location / {
>
>        # Ruud Baart
>        # support for activesync
>        # works for me with Outlook 2013 and Android 5.0.1
>        location /Microsoft-Server-ActiveSync {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_keep_conn on;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>             fastcgi_intercept_errors    on;
>             fastcgi_read_timeout        640;
>         }
>
>         location /autodiscover/autodiscover.xml {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_keep_conn on;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>         }
>         location /Autodiscover/Autodiscover.xml {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_keep_conn on;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>         }
>         location /AutoDiscover/AutoDiscover.xml {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_keep_conn on;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>         }
>                location /.well-known/caldav {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>          }
>         location /.well-known/carddav {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>          }
>
>             location /rpc.php/principals {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>          }
>
>             location /rpc.php/calendars {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>          }
>
>             location /rpc.php/adressbooks {
>             alias /usr/local/www/horde/rpc.php;
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             include                     fastcgi_params;
>             fastcgi_param               SCRIPT_FILENAME  
> /usr/local/www/horde/rpc.php;
>          }
>
>         location ^~ /(static|themes)/ {
>             expires                     4w;
>             add_header                  Cache-Control public;
>         }
>
>         location ^~ /services/ajax.php {
>             fastcgi_split_path_info     ^(.+\.php)(/.+)$;
>             fastcgi_keep_conn on;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             fastcgi_param               SCRIPT_FILENAME  
> $document_root$fastcgi_script_name;
>             include                     fastcgi_params;
>         }
>
>         location ~ \.php$ {
>             fastcgi_index       index.php;
>             fastcgi_split_path_info     ^(.+\.php)(/.+)$;
>             fastcgi_keep_conn on;
>             fastcgi_pass                unix:/var/run/php-fpm/horde-fpm.sock;
>             fastcgi_param               SCRIPT_FILENAME  
> $document_root$fastcgi_script_name;
>             include                     fastcgi_params;
>         }
>
>         try_files                       $uri $uri/ /rampage.php?$args;
>
>     }
>
>  
>   Best greetings
>
> Andreas Schneider
>
>  

----- Ende der Nachricht von Andreas Schneider <as at schneider-pc.ch> -----


More information about the sync mailing list