SDI内容退出,Apache错误,“INCLUDE过滤器已移除”

本文提供了对Sling动态问题的解决方案,包括(SDI)内容退出,并且Apache error.log指示“删除了INCLUDE过滤器”。

描述 description

环境

  • Adobe Experience Cloud (AEC)
  • Adobe Experience Manager (AEM)

问题

Sling Dynamic Include (SDI)内容退出,并且Apache error.log指示“Options +Include (或IncludeNoExec)”未设置[ 1],即使vhost(虚拟主机文档)文件中设置了Options +Include:

<Directory />    AddType text/html .html    AddOutputFilter INCLUDES .html    Options Indexes FollowSymLinks Includes</Directory>

[ include:warn] AH01374: mod_include:未设置Options +Include(或IncludeNoExec),删除了INCLUDE筛选器: /content/page.html

解决方法 resolution

显式指定文档根文件夹,例如,本例中为 “/var/www/html”,包含引号。

<Directory “/var/www/html”>    AddType text/html .html    AddOutputFilter INCLUDES .html

Options Indexes FollowSymLinks Includes
</Directory>

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f