Created
March 11, 2016 06:33
-
-
Save eberfreitas/8b0328595ca1ed6263c7 to your computer and use it in GitHub Desktop.
Caddy configuration for CakePHP 3 (and probably 2 as well) - Use this file on your project root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost:80 | |
root webroot | |
fastcgi / 127.0.0.1:9000 php | |
rewrite { | |
to {path} {path}/ /index.php?{path}&{query} | |
} | |
log logs/server.log { | |
rotate { | |
size 100 | |
age 14 | |
keep 10 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With modern Caddy and php-fpm (and systemd for logging) this becomes something like this:
If you need to pass additional CGI env vars: