php file not found, 需要 /www 755, 不能放进/root

apt install php,php-fpm, php7.3-sqlite3
apt install php7.3 php7.3-xml php7.3-sqlite; cd /www/default; php -S 127.0.0.1:88
mkdir /www; chmod -R 755 /www/*;chown www-data:www-data -R /www/*;
systemctl restart caddy;

win7 win10 等启用http的webdav,避免踩坑认证错误

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters]
"BasicAuthLevel"=dword:00000002
service restart webclient

caddy2 + webdav plugin,caddyfile

{
order webdav last
}
http://xxxx:18023 {
webdav {
    root c:\swds
    }
basicauth {
    swds JDJhJDEwJHp4bzc4dDgxSmlXNG03bERsbVRZOC5VUy5lQjljV2xxQzl1SUUxQWVGdWdJcWXXXXXXXXXX
    }
}

Caddy生成加密密码

caddy hash-password  --plaintext yourpassword

https://www.yumenaka.net/2020/05/10/caddy2_with_webdav/