2024-01-12 12:21:36 +01:00

23 lines
365 B
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
}
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server {
root /var/dep/html
}
}
}