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],即使Options +Include設定在vhost (虛擬主機檔案)檔案中:

<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