当使用caddy和wordpress配合时,caddyfile中没有file_server时,仪表盘中外观菜单下主题不显示,不能下载、更新,当添加file_server时,一切正常。
可供参考的Caddyfile
example.com {
# Set this path to your site’s directory.
root * /var/www/
log {
output file /var/log/caddy/example.com.access.log {
roll_size 10MiB
roll_keep 1000
roll_keep_for 168h
}
}
file_server
encode gzip
php_fastcgi unix//run/php/php7.4-fpm.sock
tls {
protocols tls1.2 tls1.3
}
}
发表回复