Example: Typecho blogging platform

Typecho is a PHP blogging platform – it works out of the box with Caddy’s php_fastcgi directive:

example.com {
	root * /var/www/typecho
	encode gzip
	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