Multiple domains dispatcher breaking in AEMCaas
Hi Team,
I am facing a issue with dispatcher configurations with multiple Hosts.
I have 2 domains
I have defined vhost for them with entries
domainA.vhost:-
ServerName "www.domainA.com"
# Put names of which domains are used for your published site/content here
ServerAlias "127.0.0.1" "localhost" "*.local" "*.adobeaemcloud.com" "*.adobeaemcloud.net"
domainB.vhost:-
ServerName "www.domainB.com"
# Put names of which domains are used for your published site/content here
ServerAlias "127.0.0.1" "localhost" "*.local" "*.adobeaemcloud.com" "*.adobeaemcloud.net"
Akamai Configuration:---------------
- Host header -> publish-p*****-e*****.adobeaemcloud.com
- X-Forwarded-Host -> www.domainA.com
- X-AEM-Edge-Key -> Environment key
- Host header -> publish-p*****-e*****.adobeaemcloud.com
- X-Forwarded-Host -> www.domainB.com
- X-AEM-Edge-Key -> Environment key
farm files and virtualhosts files are also separate for both of them as well the rewrite rules. But when I hit the domain, both of them resolve to single content path and take single farm file.
I have followed all public documents from adobe while setup
What am I doing wrong? I know from Akamai its going to dispatcher and taking first farm which has "*.adobeaemcloud.com", so it can be any of them. If I remove the entry from one file, the second domain is also taking same farm. In AMS we used to have loadbalencer which was working with same configuration and files were picked up as expected. In AEMCaas we do not have loadbalencer I think so, CDN is taking content directly from Dispatcher and configurations are breaking.Anyone faced same issue?
Thanks,
Abhishek