Using managed DNS and slave servers

Permalink
I have a customer that wants a new site and I have recommended Concrete5.

But I am unsure how to set it up as they use a managed DNS system that will provide the web site visitor with an IP address on a round robin basis. If a visitor views 5 pages on their web site, they could have had the content delivered from 5 different servers around the world.

Their systems are setup so they save their files to a master server, and automated processes copy files and data to the slave servers within a couple of mins.

Each instance of MySQL runs it's own local copy of MySQL where data is copied down to. The only data copied out from the slave servers are the logs stats which get copied to another server and merged with data from all the other servers.

Given this setup, all C5 data and files will need to be updated on the master server so that it gets replicated out to the slave servers.

I could use another domain like c5.example.com that points only to the master server where the staff would make updates.
But I have noticed on other sites I have worked on with C5, the domain is placed in linked content - meaning links would show as c5.example.com/about-us/ instead ofhttp://www.example.com/about-us/. This means the failover DNS systems and servers are not then utilised, and if the master server goes down the web site is down too.

My question is, how do I get C5 to only visit the Master server for updating content without it placing the wrong domain name in the links/content?

UPDATE: To better explain the situation I am attaching a PDF with a diagram showing the setup we have.

1 Attachment

shadowcomputers
 
tbcrowe replied on at Permalink Reply
tbcrowe
The quick and dirty way to do this is to edit (or, better, copy to /blocks/content/editor_init.php) /concrete/blocks/content/editor_init.php and remove BASE_URL from the following lines:
var url = '<?php echo BASE_URL . DIR_REL?>/<?php echo DISPATCHER_FILENAME?>?cID=' + cID;

and:
var selectedText = '<a href="<?php echo BASE_URL . DIR_REL?>/<?php echo DISPATCHER_FILENAME?>?cID=' + cID + '" title="' + cName + '">' + cName + '<\/a>';

This code also exists in /concrete/elements/editor_init.php.

Frankly, it seems like it would be better if this were the default. It would make moving sites to different domains easier.

Another alternative that might be valuable in your case would be to define a replacement value for BASE_URL (with a different name) in site.php and use that in these locations instead.
Mnkras replied on at Permalink Reply
Mnkras
open the /config/site.php and remove both the base url and Dir rel lines and it should be fine, no need to do what was stated above
shadowcomputers replied on at Permalink Reply
shadowcomputers
Do you recommend removing the lines where they get defined or setting them as empty strings?

Is there a reason that the domain is set here?
Could removing these line break other things in C5?