Mailing List Archive

Problem addressng caldav with nginx
Hi everyone,

thanks for letting me join the list!

We use davical from the debian 11 repository in version 1.1.10-1 - we
use nginx and have configured the vhost as below.

In the GUI everything works fine and the database is integrated
correctly. However, we can't address the calendars via caldav - the
errorlog messages are also attached below.

Can anybody help? That would be greatly appreciated, thanks!

Best,

Alex Klotz

(Editorial staff Kultursever / CultureBase)


Nginx:

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    ssl_certificate /etc/nginx/ssl/domain.org.crt;
    ssl_certificate_key /etc/nginx/ssl/domain_org.key;
    server_name caldav.domain.org;
    root /usr/share/davical/htdocs;
    index index.php index.html;
    keepalive_timeout 0;
    location /images/ {
      }
    rewrite ^/\.well-known/(.*)$ /caldav.php/.well-known/$1;
    rewrite ^/principals/users/(.*)$ /caldav.php/$1;
    rewrite ^/principals/resources/(.*)$ /caldav.php/$1;
    rewrite ^/calendars/__uids__/(.*)$ /caldav.php/$1;
    rewrite ^/addressbooks/__uids__/(.*)$ /caldav.php/$1;
    rewrite ^/caldav.php/(.*)$ /caldav.php last;
    include include/php.conf;
    access_log /var/log/nginx/caldav-access.log;
    error_log /var/log/nginx/caldav-error.log;
}


Errorlog:

2023/04/27 13:09:00 [error] 7000#7000: *1817 FastCGI sent in stderr:
"PHP message: davical: LOG: :Response status 405 for HEAD
/caldav.php/alexk/calendar/PHP message: davical: LOG: :*****************
Response Header ****************PHP message: davical: LOG:
headers:-->Server: 1.1PHP message: davical: LOG: headers:-->DAV: 1, 2,
3, access-control, calendar-access, calendar-schedulePHP message:
davical: LOG: headers:-->DAV: extended-mkcol, bind, addressbook,
calendar-auto-schedule, calendar-proxyPHP message: davical: LOG:
headers:-->Allow: PROPFIND,PROPPATCH,OPTIONS,MKCOL,REPORT,DELETEPHP
message: davical: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.10;
DB/1.3.3PHP message: davical: LOG: headers:-->Content-type: text/plain;
charset="utf-8"PHP message: davical: LOG: :******************** Response
********************PHP message: davical: LOG: response:-->GET-Anfragen
an Sammlungen sind nur für Kalender unterstützt" while reading response
header from upstream, client: 37.201.142.193, server: caldav.domain.org,
request: "HEAD /caldav.php/alexk/calendar/ HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "caldav.domain.org"
2023/04/27 13:09:00 [error] 7000#7000: *1822 FastCGI sent in stderr:
"PHP message: davical: LOG: :Response status 405 for GET
/caldav.php/alexk/calendar/PHP message: davical: LOG: :*****************
Response Header ****************PHP message: davical: LOG:
headers:-->Server: 1.1PHP message: davical: LOG: headers:-->DAV: 1, 2,
3, access-control, calendar-access, calendar-schedulePHP message:
davical: LOG: headers:-->DAV: extended-mkcol, bind, addressbook,
calendar-auto-schedule, calendar-proxyPHP message: davical: LOG:
headers:-->Allow: PROPFIND,PROPPATCH,OPTIONS,MKCOL,REPORT,DELETEPHP
message: davical: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.10;
DB/1.3.3PHP message: davical: LOG: headers:-->Content-type: text/plain;
charset="utf-8"PHP message: davical: LOG: :******************** Response
********************PHP message: davical: LOG: response:-->GET-Anfragen
an Sammlungen sind nur für Kalender unterstützt" while reading response
header from upstream, client: 37.201.142.193, server: caldav.domain.org,
request: "GET /caldav.php/alexk/calendar/ HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "caldav.domain.org"
2023/04/27 13:09:01 [error] 7000#7000: *1846 FastCGI sent in stderr:
"PHP message: PHP Early Exception: [0] Call to a member function
IsCalendar() on null at
/usr/share/davical/inc/caldav-PUT-default.php:39" while reading response
header from upstream, client: 37.201.142.193, server: caldav.domain.org,
request: "PUT /caldav.php/alexk/calendar/ HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "caldav.domain.org"

--
mailto:alexk@kulturserver.de

Stiftung kulturserver.de gGmbH

Lothringerstraße 23
D-52062 Aachen
http://ggmbh.kulturserver.de

Geschäftsführer: Wolfgang Knauff

Amtsgericht Aachen* *Handelsregister-Nr.:B 10515
Umsatzsteuer-Identifikations-Nr.:DE DE 230868040



_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general