Files
php/caddy/Caddyfile

20 lines
296 B
Caddyfile
Raw Normal View History

{
auto_https disable_redirects
}
:80, :443
root * /srv
# https://caddyserver.com/docs/caddyfile/directives/php_fastcgi
php_fastcgi localhost:9000 {
try_files {path} {path}/index.php =404
}
file_server
handle_errors {
root * /etc/caddy/error
rewrite * /error.html
templates
file_server
}