Caddyfile 582 B

12345678910111213141516171819202122232425262728
  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. r .*
  11. ext /
  12. to /index.php?{query}
  13. }
  14. gzip
  15. browse
  16. log /var/log/caddy/access.log
  17. errors /var/log/caddy/error.log
  18. # Uncomment to enable TLS (HTTPS)
  19. # Change the first list to listen on port 443 when enabling TLS
  20. #tls self_signed
  21. # To use Lets encrpt tls with a DNS provider uncomment these
  22. # lines and change the provider as required
  23. #tls {
  24. # dns cloudflare
  25. #}