Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Retaining domain name in AEMaaCS Publish Servers

Avatar

Level 5

Hi guys,

 

I am getting a weird issue in the Sandbox Environment in AEM Cloud -

My dispatcher vhost has ServerName configured to handle the request from domain name.

 

However, on the publish where I have a utility method to extract the Server Name from SlingHttpServletRequest request object via request.getServerName() the logger shows the server name from the publish as http://publish-p12345-e1234567.adobeaemcloud.com

 

Shouldn't the output match the domain name entered as even internally the domain should ideally be preserved from the request object?

 

Thanks,

CL

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@NageshRaja setup x-forwarded-host at CDN level with domain for your org and configure dispatcher to forward those headers to publisher while it fetches page content from publisher in the publish farm.any file

 

https://experienceleague.adobe.com/en/docs/experience-manager-dispatcher/using/configuring/dispatche...

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@NageshRaja setup x-forwarded-host at CDN level with domain for your org and configure dispatcher to forward those headers to publisher while it fetches page content from publisher in the publish farm.any file

 

https://experienceleague.adobe.com/en/docs/experience-manager-dispatcher/using/configuring/dispatche...

Avatar

Community Advisor

Hi @NageshRaja ,

We need to set X-Forwarded-Host in CDN, ServerAlias and allow that header in /clientheaders section of dispatcher.

You may refer below documentation for step by step tutorial and sample servlet code

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/content-delivery/c...

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/content-delivery/c...

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/content-delivery/c...

Thanks