Sharing Matrix and non-Matrix (part of site(s))

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:


  1. 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/matrixfolder

Now 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?

[quote]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.
[right][post=“9315”]<{POST_SNAPBACK}>[/post][/right][/quote]



Not quite. The System Root URL should be mydomain.com/matrixfolder in Matrix. Then, the Aliases in Apache should be /matrixfolder/__data, /matrixfolder/__fudge, /matrixfolder/__lib and /matrixfolder/



Just as long as the mod_proxy passes the original host-header to Matrix, it should create the URLs just fine. :slight_smile:

[quote][…] Then, the Aliases in Apache should be /matrixfolder/__data, /matrixfolder/__fudge, /matrixfolder/__lib and /matrixfolder/


Just as long as the mod_proxy passes the original host-header to Matrix, it should create the URLs just fine. :)[/quote]

And the Aliases in Apache would be in a vhost block (mydomain.com) to cope with the fact that you may have mydomain2.com on box C and mydomain2.com/matrixfolder/ (note same folder name) on box B.

Am I understanding this right?

Correct. :slight_smile: