You can override the root
in the php_fasctcgi
directive to have Caddy tell the fastcgi responder to look in a different directory when running the PHP code. The gist:
root * /wordpress
encode gzip
php_fastcgi wordpress:9000 {
root /var/www/html
}
file_server