${request.serverName} not returning expected value
Hello Community - I am using the request object ${request.serverName} to retrieve the domain name. If I access the dispatcher URL, it is returning the AEM Publish instance name(which is incorrect) instead of the actual domain name of the page I am trying to access.
i.e If I try to access the page: https://www.example.com/test.html - It should return "www.example.com"
Accessing AEM Publish instance: https://aempublish:8080/test.html - should return "aempublish"
I have even verified the dispatcher configs (VirtualHost entrues). Can someone tell me how can I fix this?
