server { listen 443 ssl; server_name dav.ovalwonder.com; root /var/www/baikal/html; index index.php; ssl_certificate /etc/dehydrated/certs/dav.ovalwonder.com/fullchain.pem; ssl_certificate_key /etc/dehydrated/certs/dav.ovalwonder.com/privkey.pem; ssl_protocols TLSv1.2 TLSv1 TLSv1.1; rewrite ^/.well-known/caldav /dav.php redirect; rewrite ^/.well-known/carddav /dav.php redirect; charset utf-8; location ~ /(\.ht|Core|Specific|config) { deny all; return 404; } location ~ ^(.+\.php)(.*)$ { try_files $fastcgi_script_name =404; include /etc/nginx/fastcgi_params; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } }