Created
October 14, 2016 02:31
-
-
Save mblarsen/02733392f0d31036741494a116e53312 to your computer and use it in GitHub Desktop.
Simple PHP setup for Caddy local dev
This file contains hidden or 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
codeboutique.dev:80 { | |
root /var/www/codeboutique | |
gzip | |
tls off | |
log stdout | |
errors stderr | |
fastcgi / /run/php/php7.0-fpm.sock php { | |
ext .php | |
index index.php index.html | |
} | |
} |
Replace /run/php/php7.0-fpm.sock
with whatever you have php-fpm
set to listen to (if not the socket of course).
Troubleshooting tips here https://github.com/mholt/caddy/wiki/Troubleshooting-PHP-FPM-and-FastCGI
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: to allow binding on port 80 as non-root
setcap
was used on thecaddy
executable: