【问题标题】:Is there a way to resolve ESI with Apache even if Varnish is disabled? Is there an Apache module?即使 Varnish 被禁用,有没有办法用 Apache 解决 ESI?有 Apache 模块吗?
【发布时间】:2014-01-31 06:42:41
【问题描述】:

我们正在将一个大型网站迁移到 Varnish(将 Varnish 放在 Apache 前面),但我们希望即使没有 Varnish 也能使用 ESI 标签(例如在本地开发设置中)。

是否存在用于此的 Apache 模块?

我在互联网上没有找到任何有用或明确的内容。

【问题讨论】:

    标签: apache caching module varnish esi


    【解决方案1】:

    有些框架支持 ESI。我手头知道的是 PHP 框架 Symfony2,但我也在其他一些框架中看到过它(不确定那是否是 PHP)。

    但是要获得一个良好的本地测试环境,最好获得一个适当的 vagrant 设置——在其中你也只需为 varnish 编写配置。配置完成后,只需一个简单的命令即可启动整个开发环境。使用 Chef 或 Puppet 进行配置,您的 apache、varnish 等几乎可以使用了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-07-21
      • 2016-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多