Is it possible with mod_proxy_balancer to do the following:
- Main application server: IP: 192.168.1.1
- Secondary server: IP: 192.168.1.2
Main application server deals with all requests from the public DNS using apache.
Then using mod_proxy_balancer to basically say
<Proxy balancer://myapp>
BalancerMember http://192.168.1.1/ loadfactor=1 # Balancer member 1
BalancerMember http://192.168.1.2/ loadfactor=3 # Balancer member 2
ProxySet lbmethod=byrequests
</Proxy>
So in effect it is saying, Main app server can either deal with this request or it can pass it on to another server in the cluster?
Also, if I'm using https, then would I just set up each apache on each of the servers to point to my signed certificate and listen on port 443 then they would naturally just deal over https when mod_proxy_balancer passes over the request?
I know I could set up a test myself, but I don't want to mess about setting up two Ubuntu VMs if someone can give me the quick answer here! :)
Thanks