How can I setup an apache mod-proxy server to server content from a seperate designated server, in a way that I can change which server to serve content from without restarting apache?
The content server will change periodically, either for maintenance, or because of failure.
I have an app that does not need to be in a cluster, but I want to have a static version of the webpage display in the event the main app server crashes.
I also want the option to update the codebase on the server test it and then switch out the old live server.
I've set up mod_proxy using
ProxyPass / http://appserver.com ProxyPassReverse / http://appserver.com
this works but seams to require a restart with different settings to change the direction. which defeats the purpose of using it on a live server.
I've also tried mod_balencer which works great for the failover but requires an apache restart to set it back to serving up the main app server when it's backup.
ProxyPass / balancer://hotcluster/ <Proxy balancer://hotcluster> BalancerMember http://dyn:80 loadfactor=1 BalancerMember http://basic:80 status=+H ProxySet lbmethod=bytraffic </Proxy>
Is there a way I can set what the current app server is without restarting apache?