Retaining domain name in AEMaaCS Publish Servers | Community
Skip to main content
NageshRaja
Level 5
November 19, 2024
Solved

Retaining domain name in AEMaaCS Publish Servers

  • November 19, 2024
  • 2 replies
  • 643 views

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

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 Shashi_Mulugu

@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/dispatcher-configuration#specifying-the-http-headers-to-pass-through-clientheaders

2 replies

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
November 20, 2024

@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/dispatcher-configuration#specifying-the-http-headers-to-pass-through-clientheaders