AEMaaCS Dispatcher Vhost issue
Hi ,
We have recently migrated to AEMaaCS and i have been trying to setup a new site but seeing issue with correct vhost not being picked up and also not caching. Below is my setup. We are front loading these websites with Akamai and using X-AEM-Edge-Key. When i am trying to access stage.site2.com , i am always being served from vhost "site1.com" and i am seeing the below message in the logs as well , Below is my setup and do you find any issues with the below and what might be the issue ? Any pointed would be appreciated
No farm matches host 'publish-p***-e****.adobeaemcloud.com', selected last farm 'site2'<VirtualHost *:80>
ServerName site1.com
# Put names of which domains are used for your published site/content here
# ServerAlias "*"
ServerAlias "localhost"
ServerAlias "*.local"
ServerAlias "publish*.adobeaemcloud.net"
ServerAlias "publish*.adobeaemcloud.com"
ServerAlias "preview*.adobeaemcloud.com"
ServerAlias "uat.site1.com"
ServerAlias "stage.site1.com"
ServerAlias "www.site1.com"
<IfModule mod_headers.c>
Header add X-Vhost "publish-site1"
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerName site2.com
# Put names of which domains are used for your published site/content here
ServerAlias "publish*.adobeaemcloud.net"
ServerAlias "publish*.adobeaemcloud.com"
ServerAlias "preview*.adobeaemcloud.com"
ServerAlias "www.site2.com"
ServerAlias "site2.com"
ServerAlias "stage.site2.com"
<IfModule mod_headers.c>
Header add X-Vhost "publish-site2"
</VirtualHost>I have separate files for farms in enabled_farms
/site1 {
# client headers which should be passed through to the render instances
# (feature supported since dispatcher build 2.6.3.5222)
/clientheaders {
$include "../clientheaders/clientheaders.any"
}
# hostname globbing for farm selection (virtual domain addressing)
/virtualhosts {
$include "../virtualhosts/001_site1_virtualhosts.any"
}
/site2 {
# client headers which should be passed through to the render instances
# (feature supported since dispatcher build 2.6.3.5222)
/clientheaders {
$include "../clientheaders/clientheaders.any"
}
# hostname globbing for farm selection (virtual domain addressing)
/virtualhosts {
$include "../virtualhosts/002_site2_virtualhosts.any"
}
Here is my vhosts.any files
001_site1_virtualhosts.any
"site1.com"
"www.site1.com"
"stage.site1.com"
"uat.site1.com"
002_site2_virtualhosts.any
"site2.com"
"www.site2.com"
"stage.site2.com"
"uat.site2.com"