2022-05-11 01:39:24 +08:00
|
|
|
{
|
|
|
|
|
auto_https disable_redirects
|
|
|
|
|
}
|
2022-05-11 00:43:07 +08:00
|
|
|
:80, :443
|
2022-05-11 00:25:23 +08:00
|
|
|
root * /srv
|
2022-05-10 20:18:20 +08:00
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
}
|