Has anybody had to share a domain between multiple boxes?
I'm facing two scenarios but let's focus on the first one for now:
- CMS doesn't own the domain:
mydomain.com/ is not a Matrix site and hosted on box A,
mydomain.com/matrixfolder/ is Matrix on box B
Currently I'm looking into putting modProxy on the domain owner to direct to the other box for that folder. Matrix generates its navigation structure based on the site URL. This means that one of the System Root URL needs to be mydomain.com even though the DNS won't be set to point to box B.
On box A, I've tried something along the lines of:
ProxyPass /matrixFolder cmsDomain.com/matrixfolder
ProxyPassReverse /matrixFolder cmsDomain.com/matrixfolderNow my site would need 2 urls for this to work: cmsDomain.com/matrixfolder for the proxy redirection, and mydomain.com/matrixfolder because that's what i want to navigate through.
Unfortunately Matrix is smart and uses the URLs being requested from the proxy redirection rather than the first URL I've listed in the site URL.
I hope this makes sense.
Is there a way to achieve what I'm trying to achieve?
