recipe/provision/Caddyfile
{{domain}} {
root * {{deploy_path}}/current/{{public_path}}
file_server
php_fastcgi * unix//run/php/php{{php_version}}-fpm.sock {
resolve_root_symlink
}
log {
output file {{deploy_path}}/log/access.log {
mode 0644
}
}
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server {
root /var/deployer
}
}
}