Skip to content

Instantly share code, notes, and snippets.

@mblarsen
Created October 14, 2016 02:31
Show Gist options
  • Save mblarsen/02733392f0d31036741494a116e53312 to your computer and use it in GitHub Desktop.
Save mblarsen/02733392f0d31036741494a116e53312 to your computer and use it in GitHub Desktop.
Simple PHP setup for Caddy local dev
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
}
}
@mblarsen
Copy link
Author

Replace /run/php/php7.0-fpm.sock with whatever you have php-fpm set to listen to (if not the socket of course).

@mblarsen
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment