Enabled Vhost and Available Vhosts - AEM ignoring all vhosts if default.vhost is present
Hi All,
I am having a strange issue in my dispatcher configurations -
I have one vhost in both enabled and available folders - xBrandA.vhost.
Scenario 1 - Both default.vhost and xBrandA.vhost are present as symlinks in enabled vhosts folder
URL - https://brandA.com/content/brandA/us/en/home.html
Response Headers - x-vhost is publish - This is coming from default.vhost
Here the x-vhost was expected to be xBrandA as the domain should have mapped to the corresponding vhost.
Scenario 2 - Only xBrandA.vhost is present as symlink in enabled vhosts folder
URL - https://brandA.com/content/brandA/us/en/home.html
Response Headers - x-vhost is xBrandA - This is coming from xBrandA .vhost
But in this scenario the publish URL is displaying "It Works!" as the default.vhost has ServerName "publish" and ServerAlias "*".
I want to have both vhosts work in parallel - default.vhost works for publish based URLs (https://publish-p22222-e111111.adobeaemcloud.com/) and xBrandA.vhost for brandA.com.
Workaround - If I rename the "default.vhost" to "zzz_default.vhost", that works correctly as the order in which requests are mapped to vhosts changes - default.vhost being the last one.
But ideally there should not have been any need of renaming this file.
@arunpatidar , @mohit_kbansal , @joerghoh - Any help on the above issue ?
Thanks,
Rohan Garg
