Files
php/caddy/Caddyfile
李东云 ed8ee1971f
All checks were successful
continuous-integration/drone/push Build is passing
fix: 🐞 修复文件位置造成的构建失败
2022-05-10 20:54:50 +08:00

17 lines
269 B
Caddyfile

localhost
root * /app/public
# 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
}