I use infcloud with davical with nginx without problem... Here is my config in case...
server { server_name davical.bidon.eu davical.secours.bidon.eu; ssl_certificate /etc/acme/fullchain/davical.bidon.eu.pem; ssl_certificate_key /etc/acme/key/davical.bidon.eu.pem; root /usr/share/davical/htdocs; index index.html index.htm index.php index.pl; # begin : https section listen 443 ssl http2 ; listen [::]:443 ssl http2; # les parametres généraux de ssl sont inclus dans : // only ssl params here include /etc/nginx/pc_https.conf ;
# end : https section keepalive_timeout 0; client_max_body_size 8M; # has to be same size as in php.ini, else worthless!
location /images/ { }
location / { auth_basic "toldev"; auth_basic_user_file /etc/nginx/toldev.password; try_files $uri $uri/ =404; }
location ~ ^(.+.php)(.*)$ { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/fastcgi_pass_php_socket; fastcgi_split_path_info ^(.+.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_read_timeout 180; fastcgi_buffer_size 128k; fastcgi_buffers 4 256k; }
location ~ .php$ { try_files $uri =404; include fastcgi_params; include /etc/nginx/fastcgi_pass_php_socket; fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(.*)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; }
location =caldavzap/ {
try_files /infcloud/index.html =404; auth_basic off; add_header Cache-Control "max-age=0, must-revalidate, no-cache, no-transform, private";
} location /carddavmate/ {
auth_basic off; add_header Cache-Control "max-age=0, must-revalidate, no-cache, no-transform, private"; }
}