Caddyfile 988 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. laradock1.demo:80 {
  26. root /var/www/public
  27. # Create a Webhook in git.
  28. #git {
  29. #repo https://github.com/xxx/xxx
  30. # path /home/xxx
  31. # #interval 60
  32. # hook webhook laradock
  33. # hook_type generic
  34. #}
  35. }
  36. laradock2.demo:80 {
  37. # Create a Proxy and cors.
  38. #proxy domain.com
  39. #cors
  40. }