Virtual Servers Replication

Ubunut:
20.04:

Dear Team,

Is there any way that we can configure Slave Server for all our virtual servers?

Could anybody guide me to replicate all the virtual servers to the slave in real time. I mean if we change any file on primary server it should be replicated to the slave server in real time like DNS slave works.

Please help me to acheive this.

Thanks.

Ali.

Do you want this replication between two servers to work for static web content such as HTML, CSS, JS and image files or would it also need to cater to dynamic web content such as PHP files and databases?

Would you want email to sync between servers too?

I need everything static and dynamic both.

So if 1 servers go down the other will take place just by replacing the IP

Thanks.

Ali.

Is there anyone who could suggest me what to do ?

Thanks.

Ali.