【问题标题】:IIS mod/extension to support eXtended Server-Side Includes (XSSI)?支持扩展服务器端包含 (XSSI) 的 IIS 模块/扩展?
【发布时间】:2010-10-23 16:54:50
【问题描述】:

我一直在与一位设计师合作,他希望将一些在 Apache 上开发的内容带到 IIS 中。然而,内容使用 XSSI。我无法确定 IIS 是否可以支持这些东西。也许它在 Windows/IIS 上命名为其他名称?一个示例如下所示:

<!--#config timefmt="%Y%m%d" --> 

<!--#if expr="$DATE_LOCAL < 20090311" --> 

<P>This will be shown before my birthday in 2009 
<!--#endif --> 
<!--#if expr="$DATE_LOCAL >= 20090311" --> 

<P>This will be shown during and after my birthday in 2009 
<!--#endif --> 

似乎我可以用经典的 .ASP 复制这种行为,但我不知道这是否是这种处理的常见做法。

【问题讨论】:

    标签: apache iis asp-classic server-side-includes


    【解决方案1】:

    任何版本的 IIS 都不支持 XSSI,您必须编写诸如 .asp 或 asp.net 代码之类的代码来完成这类事情。

    【讨论】:

      猜你喜欢
      • 2011-09-15
      • 2016-09-10
      • 1970-01-01
      • 2016-02-24
      • 2012-12-17
      • 1970-01-01
      • 1970-01-01
      • 2022-12-20
      相关资源
      最近更新 更多