Sling Dynamic Include (SDI) in AEM 6.2 | Community
Skip to main content
Singaiah_Chintalapudi
Level 7
September 28, 2017
Solved

Sling Dynamic Include (SDI) in AEM 6.2

  • September 28, 2017
  • 8 replies
  • 4763 views

Hi,

I am trying to use the SDI in AEM 6.2 (no service packs). I've installed the Sling Dynamic Include bundle (3.0.0) on my publish instance and configure all the required parameters. However, its generating the <!-- SDI include (path: /content/geometrixx/en/services/_jcr_content/par/title.nocache.html, resourceType: geometrixx/components/title) --> but its not generating the the <!--#include virtual=""--> markup as shown in the in this demo.

Any fix for this?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Singaiah_Chintalapudi

Hi Rohit,

I was able to make it work. It was a apache config change. There was a small syntax change between Apache 2.2 and 2.4 causing this issue. This is fixed now.

Thanks for your willingness to help.

Thanks.

8 replies

rohitg22171791
Level 2
September 29, 2017

Hi,

Please add AddOutputFilter INCLUDES .html in your virtual host entry in httpd.conf file.

or you can modify your virtual host file as below and include the same in httpd.conf file.

<VirtualHost *:8080>

<Directory />

    <IfModule disp_apache2.c>

        ModMimeUsePathInfo On

        # enable dispatcher for ALL request. if this is too restrictive,

        # move it to another location

        SetHandler dispatcher-handler

    </IfModule>

    Options FollowSymLinks Includes

    AllowOverride None

AddOutputFilter INCLUDES .html

</Directory>

    DocumentRoot "C:\\AEM\\htdocs"

    ServerName aem-publish.local

    ErrorLog "logs/vhost-error.log"

    CustomLog "logs/vhost-access.log" common

</VirtualHost>

where ServerName aem-publish.local is host name I have setup for my local in hosts file.

Regards

Rohit

Singaiah_Chintalapudi
Level 7
September 29, 2017

Hi,

I have already added all these as mentioned in the article.

Thanks.

rohitg22171791
Level 2
September 30, 2017

Hi,

Can you please attach zip of your apache and sdi config, I will have a look and resolve the issue.

Thanks.

Singaiah_Chintalapudi
Level 7
October 1, 2017

Hi,

It suppose to get this on publish instance. But this is not working on publish. If it works on publish then it will work o  dispatcher as well.

Thanks.

Singaiah_Chintalapudi
Singaiah_ChintalapudiAuthorAccepted solution
Level 7
October 3, 2017

Hi Rohit,

I was able to make it work. It was a apache config change. There was a small syntax change between Apache 2.2 and 2.4 causing this issue. This is fixed now.

Thanks for your willingness to help.

Thanks.

Manjunath_DJ
Level 2
October 3, 2017

Hi Rohit,

Can you please post the details what was causing issue b/w version 2.2 and 2.4 and attached config zip. It can helps others

rohitg22171791
Level 2
December 2, 2017

Hi noksc

I am also facing the same issue on 2.4, Can you please post the resolution here?

Singaiah_Chintalapudi
Level 7
December 3, 2017

Hi,

I had to add a path to the directory shown below:

<Directory /var/www/html/geometrix-outdoors>

<IfModule disp_apache2.c>

        ModMimeUsePathInfo On

     SetHandler dispatcher-handler

</IfModule>

Options FollowSymLinks

AllowOverride None

</Directory>

Double check the Apache configuration. See my article here: http://aempodcast.com/2017/infrastucture/multi-domain-dispatcher-configuration/#.WiOCokqnHIU

Let me know if you still face issues. I can help.