Our Matrix CMS has multiple system root urls. At the moment it's generating content with the address for __data/assets being:
http://$ROOT_URL1/__data/assets/
I'd like to change this behaviour so that it instead generates addresses for __data/assets with:
http://$ROOT_URL2/__data/assets/
How does Matrix choose which system root URL to use for __data assets? Is it simply the order on the System URL Settings tab inside System Configuration?
Matrix will choose the closest one to current URL if possible.
If you visit http://$ROOT_URL1/page, and there is a link on the page to a file asset.
The link will be http://$ROOT_URL1/__data/xx. If you visit the page on $ROOT_URL2, the file link will be $ROOT_URL2 as well.
We are hosting multiple sites with different domains in Matrix. From my experience, don't put files in the "media folder" otherwise I have to add new URL to the folder when a new site with a new URL is added, same rule to the design folder. I always put everything under the site asset.