Назад | Перейти на главную страницу

Байкал и Carddav Android 20: не каталог

Я установил Baikal 0.4.5 на свой новый сервер Debian с Nginx и PHP 5.6. Прошлые установки Байкала прошли без проблем. К сожалению, сейчас я не могу подключиться к Carddav на Android (https://example.com:443/baikal/html/dav.php/principals/username/default). Сгенерированные ошибки предполагают, что каталог отсутствует?

К вашему сведению, веб-интерфейс работает нормально. Посещая https://example.com/baikal/html/admin/ Я могу войти в систему. На /baikal/html/card.php тоже самое.

Доступ:

my_ip - - [06/Aug/2016:16:27:16 +0200] "PROPFIND /baikal/html/dav.php/principals/username/default/ HTTP/1.1" 207 312 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"
my_ip - - [06/Aug/2016:16:27:16 +0200] "PROPFIND /baikal/html/dav.php/ HTTP/1.1" 207 266 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"
my_ip - - [06/Aug/2016:16:27:16 +0200] "PROPFIND /.well-known/carddav HTTP/1.1" 302 154 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"
my_ip - - [06/Aug/2016:16:27:16 +0200] "PROPFIND /baikal/html/dav.php HTTP/1.1" 401 1806 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"
my_ip - username [06/Aug/2016:16:27:16 +0200] "PROPFIND /baikal/html/dav.php HTTP/1.1" 207 615 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"
my_ip - - [06/Aug/2016:16:27:16 +0200] "PROPFIND /baikal/html/dav.php/principals/username/ HTTP/1.1" 207 306 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"
my_ip - - [06/Aug/2016:16:27:16 +0200] "PROPFIND /baikal/html/dav.php/principals/username/default/ HTTP/1.1" 207 312 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"
my_ip - - [06/Aug/2016:16:27:16 +0200] "PROPFIND /baikal/html/dav.php/principals/username/default/ HTTP/1.1" 207 312 "-" "CardDAV-Sync free/0.4.20.1 (Telephone; Tel_type; Android 5.1.1; Lang; org.dmfs.carddav.sync/141)"

Ошибки:

2016/08/06 16:27:16 [alert] 28415#0: *22 dav_ext stat failed on '/var/www/example.com/web/baikal/html/dav.php/principals/username/default/' (20: Not a directory), client: 85.144.105.229, server: example.com, request: "PROPFIND /baikal/html/dav.php/principals/username/default/ HTTP/1.1", host: "example.com:443"
2016/08/06 16:27:16 [alert] 28415#0: *22 dav_ext stat failed on '/var/www/example.com/web/baikal/html/dav.php/' (20: Not a directory), client: 85.144.105.229, server: example.com, request: "PROPFIND /baikal/html/dav.php/ HTTP/1.1", host: "example.com:443"
2016/08/06 16:27:16 [alert] 28415#0: *23 dav_ext stat failed on '/var/www/example.com/web/baikal/html/dav.php/principals/username/' (20: Not a directory), client: 85.144.105.229, server: example.com, request: "PROPFIND /baikal/html/dav.php/principals/username/ HTTP/1.1", host: "example.com"
2016/08/06 16:27:16 [alert] 28415#0: *26 dav_ext stat failed on '/var/www/example.com/web/baikal/html/dav.php/principals/username/default/' (20: Not a directory), client: 85.144.105.229, server: example.com, request: "PROPFIND /baikal/html/dav.php/principals/username/default/ HTTP/1.1", host: "example.com:443"
2016/08/06 16:27:16 [alert] 28415#0: *26 dav_ext stat failed on '/var/www/example.com/web/baikal/html/dav.php/principals/username/default/' (20: Not a directory), client: 85.144.105.229, server: example.com, request: "PROPFIND /baikal/html/dav.php/principals/username/default/ HTTP/1.1", host: "example.com:443"

Конфигурация Байкала в хосте:

rewrite ^/.well-known/caldav /baikal/html/dav.php redirect;
rewrite ^/.well-known/carddav /baikal/html/dav.php redirect;

dav_methods     PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;

Заранее спасибо!

Благодаря Теро Килканен Я смог решить проблему. Это была просто проблема в конфигурации файла. Старая ситуация:

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_index index.php;
    include /etc/nginx/fastcgi_params;
    fastcgi_split_path_info  ^(.+\.php)(.*)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

Новая и рабочая ситуация:

location ~ ^(.+?\.php)(/.*)?$ {
    try_files $uri =404;
    fastcgi_index index.php;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include /etc/nginx/fastcgi_params;
}