Laravel的Caddy配置

本示例配置用来通过Caddy运行基于Laravel框架的网站。

Caddyfile

  1. example.com {
  2. root ./public
  3. fastcgi / 127.0.0.1:9000 php
  4. rewrite {
  5. to {path} {path}/ /index.php?{query}
  6. }
  7. }