Naked domain abc.com not rendering while www.abc.com renders correctly on AEM Cloud | Community
Skip to main content
NageshRaja
Level 5
May 29, 2025
Solved

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

  • May 29, 2025
  • 3 replies
  • 665 views

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 -

 

Any pointers on why the setup behaves as such?

 

Regards,

Naga

 

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 narendragandhi

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

3 replies

AmitVishwakarma
Community Advisor
Community Advisor
May 30, 2025

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:

narendragandhi
Community Advisor
narendragandhiCommunity AdvisorAccepted solution
Community Advisor
May 30, 2025

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

Rohan_Garg
Community Advisor
Community Advisor
May 30, 2025

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