Skip to content

Instantly share code, notes, and snippets.

@sixlive
Forked from alexbilbie/Caddyfile
Created April 7, 2017 19:51
Show Gist options
  • Save sixlive/1d7060301926fd817d309b3c17f5913d to your computer and use it in GitHub Desktop.
Save sixlive/1d7060301926fd817d309b3c17f5913d to your computer and use it in GitHub Desktop.
PHP-FPM Caddyfile example
root /app/public
tls /app/_docker/caddy/server.crt /app/_docker/caddy/server.key
fastcgi / php:9000 php
errors visible
rewrite {
regexp .*
ext /
to /index.php?{query}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment