Ver 15.0.11 Debian 10, Apache2 in php-fpm way.
It was OK for a couple of days, but donât know what happened. I checked the .htaccess file, which includes the two important lines of redirect, and it still shows msg Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken.
Also tried solutions mentioned by people here, but without any improvement. Normally, the shipped .htaccess will do the job for Apache2, which has been indicated by the official instruction.
OK, guys, now the real menu for the dinner.
I finally addressed the issue accidentally.
I tried all the solutions provided by prev posts and replies, but all in vain, so my last resort was to dig the log file, which is at Debianâs /var/log/apache2
dir.
[Thu Sep 19 11:48:24.226295 2019] [proxy_fcgi:error] [pid redacted] [client redacted] AH01071: Got error 'Access to the script 'redirect:/index.php/files/redacted/' has been denied (see security.limit_extensions)'
Iâve never seen such error info (proxy_fcgi & security.limit_ext), and Iâve tried severy times in the earlier time modifying PHP-FPM, from socks to localhost/:9000 way. Now it seems that the fcgi is the key point. I googled and found this URL, in which someone mentioned cgi.fix_pathinfo=0 as this is related to that var security.limit_ext. I tried to restore pathinfo=1 which has been discouraged by many online instructions.
Restart PHP-FPM, say systemctl restart php7.3-fpm
, and revisit the Nextcloud Overview page, the Security & setup warnings now says (with a green check)
All checks passed
instead of
Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken.
Your web server is not properly set up to resolve "/.well-known/caldav". Further information can be found in the documentation.
Your web server is not properly set up to resolve "/.well-known/carddav". Further information can be found in the documentation.
Maybe, cgi.fix_pathinfo is to Setting this to 1 will cause PHP CGI to fix its paths to conform to the spec?