rewrite ^\.well-known(.*)$ /caldav.php/.well-known$1;
rewrite ^principals/users(.*)$ /caldav.php$1;
+error_page 404 = /404;
+location /404 {
+ return 404;
+ }
location / {
# NOTE: to get DAViCal and nginx working with iCal 6.0 clients.
return 301 /caldav.php$1;
}
-location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
+location ~* ^.+\.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
root /usr/share/davical/htdocs/;
access_log off;
expires 30d;