From 7144842f0811579b19d833b17a0a6b44321001d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20Br=C3=BCnsicke?= Date: Wed, 10 Aug 2016 13:20:13 +0200 Subject: [PATCH] Added Caddyfile This enables caddy server to be used without additional configuration. ##usage Clone the repository, cd into it and run `caddy` ## requirements You only need to have caddy installed and php-fpm running on port 9000. see https://caddyserver.com/docs/caddyfile --- Caddyfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Caddyfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 00000000..221627a6 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,14 @@ +localhost:2020 + +gzip + +root app/webroot +fastcgi / localhost:9000 php + +log app/resources/tmp/logs/access.log +errors app/resources/tmp/logs/error.log + +rewrite / { + if {file} not favicon.ico + to {path} {path}/ /index.php?url={query} +}