Example: typecho with caddy2 dns cloudflare

example.com

root * /var/www/typecho
file_server

tls {
    dns cloudflare cloudflare-api-key
}

php_fastcgi unix//run/php/php7.3-fpm.sock

That’s right, Caddy v2’s php_fastcgi directive is a shortcut that includes a try_files rewrite as you can see in the expanded form:

1 Like