Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery
SOLVED

Naked domain abc.com not rendering while www.abc.com renders correctly on AEM Cloud

Avatar

Level 5

Hi all,

 

We have a strange issue in our setup - We are using Imperva as WAF and has been configured correctly by doing the below things following Customer managed CDN points to AEM managed CDN-

  1. Point WAF to the Adobe CDN’s ingress as its origin domain.
  2. Set SNI to the Adobe CDN’s ingress.

  3. Set the Host header to the origin domain. For example: Host:publish-p<PROGRAM_ID>-e<ENV-ID>.adobeaemcloud.com.
  4. Set the X-Forwarded-Host header with the domain name so AEM can determine the host header. For example: X-Forwarded-Host:example.com.

  5. Set X-AEM-Edge-Key. The value should be configured using a Cloud Manager config pipeline, as described in this article.

Once done the requests from www.abc.com are getting routed to AEM successfully but the request from naked domain "abc.com" are not working.

The certificate installed at WAF is valid for both abc.com and www.abc.com so it should have worked same for both.

 

So we are left with the situation where in abc.com is not getting served and displays the below -

NageshRaja_0-1748544496989.png

 

Any pointers on why the setup behaves as such?

 

Regards,

Naga

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @NageshRaja 

 

301 redirect from abc.com to www.abc.com is the recommended way to complete this setup. Curious on the use case for why you would also try to load AEM from abc.com directly as well.

 

I found this blog with instructions on how to complete the redirect setup in Imperva site - https://docs.imperva.com/bundle/cloud-application-security/page/settings/delivery-settings.htm

 

Hope this helps!

 

Thanks

Narendra

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @NageshRaja ,

Adobe AEM as a Cloud Service does not automatically support the apex/naked domain (abc.com) unless explicit configuration is done on both Imperva WAF and DNS/CDN level.

Try below steps:

Avatar

Correct answer by
Community Advisor

Hi @NageshRaja 

 

301 redirect from abc.com to www.abc.com is the recommended way to complete this setup. Curious on the use case for why you would also try to load AEM from abc.com directly as well.

 

I found this blog with instructions on how to complete the redirect setup in Imperva site - https://docs.imperva.com/bundle/cloud-application-security/page/settings/delivery-settings.htm

 

Hope this helps!

 

Thanks

Narendra

Avatar

Community Advisor

As mentioned by @narendragandhi, 301 redirect is the way to go!

We use Imperva WAF in our system and have a redirect for the same. Hope this helps!

 

Regards,

Rohan Garg