Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在将一个大型网站迁移到 Varnish(将 Varnish 放在 Apache 前面),但即使没有 Varnish,我们也希望使用 ESI 标签(例如,在本地开发设置中)。
是否存在用于此的 Apache 模块?
我在互联网上没有发现任何有用或清晰的东西。
有支持 ESI 的框架。我手头知道的是 PHP 框架 Symfony2,但我也在其他一些框架中看到过它(不确定那是否甚至是 PHP)。
但是要获得一个良好的本地测试环境,最好获得一个适当的 vagrant 设置 - 您也只需为 varnish 编写配置。配置完成后,只需一个简单的命令即可启动整个开发环境。使用 Chef 或 Puppet 进行配置,您的 apache、varnish 等几乎可以使用。