Caddyfile 712 B

123456789101112131415161718192021222324252627282930
  1. # Docs: https://caddyserver.com/docs/caddyfile
  2. 0.0.0.0:80 {
  3. root /var/www/public
  4. fastcgi / php-fpm:9000 php {
  5. index index.php
  6. }
  7. # To handle .html extensions with laravel change ext to
  8. # ext / .html
  9. rewrite {
  10. to {path} {path}/ /index.php?{query}
  11. }
  12. gzip
  13. browse
  14. log /var/log/caddy/access.log
  15. errors /var/log/caddy/error.log
  16. # Uncomment to enable TLS (HTTPS)
  17. # Change the first list to listen on port 443 when enabling TLS
  18. #tls self_signed
  19. # To use Lets encrpt tls with a DNS provider uncomment these
  20. # lines and change the provider as required
  21. #tls {
  22. # dns cloudflare
  23. #}
  24. }
  25. laradock.demo:80 {
  26. root /var/www/public
  27. }