Skip to content

Instantly share code, notes, and snippets.

@paulredmond
Created October 12, 2017 03:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulredmond/d406b956babfc6ec560a633adc3a9571 to your computer and use it in GitHub Desktop.
Save paulredmond/d406b956babfc6ec560a633adc3a9571 to your computer and use it in GitHub Desktop.
The Caddyfile for a Laravel PHP project - https://caddyserver.com/docs/caddyfile
0.0.0.0
root /srv/app/public
gzip
fastcgi / 127.0.0.1:9000 php
rewrite {
regexp .*
ext /
to /index.php?{query}
}
log stdout
errors stdout
on startup php-fpm --nodaemonize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment