I have deployed the DXA in IIS. I have a website configured as like this IIS--MyDomain--MySite-1. So, say for eg: https://jey.com/mystagingsite is the site developed and deployed by DXA.
Now, I have configured the cd_dynamic
and cd_link
config file as below.
<Host Domain="jey.com/mystagingsite/" Port="443" Protocol="https" Path="/" />
When I hit the version.json, am getting error as below
No matching Localization found for URL 'https://jey.com/mystagingsite/version.json'
"MyStagingSite" is the virtual directory and converted as a application too with 443 port.
If i publish and point the DXA to "https://jey.com" it works fine. So, how to point the site to the virtual directory?
Update: Please note that adding the staging and active website needs to be served from the same URL but with different context like https://jey.com/mystagingwebsite and https://jey.com/mywebsite. So adding the publication path and adding path to DXA configuration may not work in our scenario.
We also noticed the the application is trying to resolve to jey.com/mystagingwebsite:443
during resolution. Any suggestions are appreciated.
Domain
attribute doesn't have a path, and thePath
has the correct path ("/mysite" in this case). Alternatively you could try changing the Publication path in the Publication properties, but it's probably best to leave that alone for future upgrades.<Host Domain="jey.com" Port="443" Protocol="https" Path="/mystagingsite" />
. Otherwise also add the version of Tridion you're working with for help from others.