jetsung Caddyfile 配置教程 设置静态网站,如 nginx 的 autoindex on ndl.example.com { root * /data/wwwroot/downloads file_server browse tls mail@example.com log { output file /data/wwwlogs/ndl.example.com.log { roll_size 1gb roll_keep 5 roll_keep_for 720h rotate_compress false } } } cndl.example.com { root * /data/wwwroot/downloads file_server browse } 注意: 需先创建文件 ndl.example.com.log,并修改其所有权为caddy.caddy: chown caddy.caddy /data/wwwlogs/ndl.example.com.log