{"action":"created","issue":{"url":"https://api.github.com/repos/fruux/Baikal/issues/454","repository_url":"https://api.github.com/repos/fruux/Baikal","labels_url":"https://api.github.com/repos/fruux/Baikal/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/fruux/Baikal/issues/454/comments","events_url":"https://api.github.com/repos/fruux/Baikal/issues/454/events","html_url":"https://github.com/fruux/Baikal/issues/454","id":133830655,"number":454,"title":"0.3: SabreDAV logic exception with \"special\" nginx config","user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-15T22:18:06Z","updated_at":"2016-02-15T22:44:04Z","closed_at":"2016-02-15T22:44:04Z","body":"Since the upgrade I have the following hack in my nginx config so I can serve Baikal 0.3 on `/baikal/` instead of `/baikal/html/`:\r\n\r\n    location /baikal/ {\r\n        rewrite ^/baikal/(.*)$ /baikal/html/$1 last;\r\n    }\r\n\r\n    location ~ /baikal/html/ {\r\n        root /mnt/media/http/;\r\n        index index.php;\r\n\r\n        location ~ /(\\.ht|Core|Specific) {\r\n            deny all;\r\n        }\r\n\r\n        location ~ [^/]\\.php(/|$) {\r\n            fastcgi_split_path_info ^(.+?\\.php)(/.*)$;\r\n\r\n            fastcgi_index index.php;\r\n            include fastcgi_params;\r\n            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n            fastcgi_param PATH_INFO $fastcgi_path_info;\r\n            fastcgi_pass unix:/run/php-fpm/php-fpm.sock;\r\n        }\r\n    }\r\n\r\nThis seems to work fine, the absolute paths inside the admin source code seem correct, static files get loaded correctly.\r\n\r\n**However**, during CardDAV-sync I get the following exception:\r\n\r\n    debug: Using 1 maximal workers.\r\n    debug: Fetching value for password.fetch with command strategy.\r\n    Syncing contacts\r\n    debug: Loaded status for contacts\r\n    debug: PROPFIND https://home.unterwaditzer.net/baikal/card.php/addressbooks/untitaker/default/\r\n    debug: {'Content-Type': 'application/xml; charset=UTF-8', 'User-Agent': 'vdirsyncer', 'Depth': 1}\r\n    debug: <?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n    debug:             <D:propfind xmlns:D=\"DAV:\">\r\n    debug:                 <D:prop>\r\n    debug:                     <D:resourcetype/>\r\n    debug:                     <D:getcontenttype/>\r\n    debug:                     <D:getetag/>\r\n    debug:                 </D:prop>\r\n    debug:             </D:propfind>\r\n    debug:             \r\n    debug: Sending request...\r\n    debug: 500\r\n    debug: {'Connection': 'keep-alive', 'Server': 'nginx/1.8.0', 'Cache-Control': 'no-store, no-cache, must-revalidate', 'Pragma': 'no-cache', 'Transfer-Encoding': 'chunked', 'Date': 'Mon, 15 Feb 2016 22:16:33 GMT', 'Content-Type': 'application/xml; charset=utf-8', 'Expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'X-Powered-By': 'PHP/7.0.2'}\r\n    debug: b'<?xml version=\"1.0\" encoding=\"utf-8\"?>\\n<d:error xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\">\\n  <s:sabredav-version>3.1.1</s:sabredav-version>\\n  <s:exception>LogicException</s:exception>\\n  <s:message>Requested uri (/baikal/card.php/addressbooks/untitaker/default/) is out of base uri (/baikal/html/card.php/)</s:message>\\n</d:error>\\n'\r\n\r\nThis seems weird. Why is SabreDAV not happy with my config, but Baikal's admin is?\r\n"},"comment":{"url":"https://api.github.com/repos/fruux/Baikal/issues/comments/184427378","html_url":"https://github.com/fruux/Baikal/issues/454#issuecomment-184427378","issue_url":"https://api.github.com/repos/fruux/Baikal/issues/454","id":184427378,"user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T22:44:04Z","updated_at":"2016-02-15T22:44:04Z","body":"This is a configuration issue with nginx, I am unable to set DOCUMENT_ROOT to a sensible value. Effectively the kind of URL setup I want is not possible anymore, 301 the only option."}}