Laravel的Caddy配置

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

Caddyfile

example.com {
    root ./public
    fastcgi / 127.0.0.1:9000 php
    rewrite {
        to {path} {path}/ /index.php?{query}
    }
}