Skip to content

Instantly share code, notes, and snippets.

@harikt
Last active August 2, 2016 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harikt/ed5715e9b762181c97c46cab8cc74296 to your computer and use it in GitHub Desktop.
Save harikt/ed5715e9b762181c97c46cab8cc74296 to your computer and use it in GitHub Desktop.
Caddyfile for almost any php projects . Works for Zendexpressive, not tested with other frameworks.
localhost:8000
gzip
tls off
root /path/to/public
fastcgi / /var/run/php/php7.0-fpm.sock php
rewrite {
to {path} {path} /index.php?{query}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment