Caddyfile 384 B

123456789101112131415161718
  1. # Docs: https://caddyserver.com/docs/caddyfile
  2. 0.0.0.0:80
  3. root /var/www/laravel/public
  4. fastcgi / php-fpm:9000 php {
  5. index index.php
  6. }
  7. rewrite {
  8. r .*
  9. ext /
  10. to /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