I wanna make a cluster transparent for the user with all web management althrough Directadmin. The structure is on the picture, and the function of each server will be this:
Apache Server 1:
The central server, here this services will run:
-Apache + PHP
-Directadmin
-Exim and Dovecot
Apache Server 2:
Clone of Apache Server 1, with only Apache + PHP service running, /home/ content syncronizated with rsync.
Nginx Server
Server running only with NGINX http service, without PHP, for static content like images, javascript and html files. /home/ content syncronizated with rsync from Apache Server 1.
MySQL Server
Server with only MySQL service running, Apache Server 1 and Apache Server 2 will access to databases remotly.
For make run this configuration I only have a doubt, it's possible automatically sent all visitors to nginx server for static content? Or only is possible putting this files on subdomains like "images.domain.com", "html.domain.com" and configuring apache for go to this server when a user looks for this subdomains?
If I can make real this configuration I will have a very potent web cluster with a real easy use for my clients althrough DA.
Sorry my bad english!!
Apache Server 1:
The central server, here this services will run:
-Apache + PHP
-Directadmin
-Exim and Dovecot
Apache Server 2:
Clone of Apache Server 1, with only Apache + PHP service running, /home/ content syncronizated with rsync.
Nginx Server
Server running only with NGINX http service, without PHP, for static content like images, javascript and html files. /home/ content syncronizated with rsync from Apache Server 1.
MySQL Server
Server with only MySQL service running, Apache Server 1 and Apache Server 2 will access to databases remotly.
For make run this configuration I only have a doubt, it's possible automatically sent all visitors to nginx server for static content? Or only is possible putting this files on subdomains like "images.domain.com", "html.domain.com" and configuring apache for go to this server when a user looks for this subdomains?
If I can make real this configuration I will have a very potent web cluster with a real easy use for my clients althrough DA.
Sorry my bad english!!