-
1. Re: mod_cluster with multiple VirtualHosts redirected to the same cluster but having different DocumentRoots
jfclere Jan 8, 2015 3:54 AM (in response to serpikv)See http://httpd.apache.org/docs/2.2/vhosts/examples.html
mod_cluster directive UseAlias 1 might helps if you have different webapp for the Aliases
-
2. Re: mod_cluster with multiple VirtualHosts redirected to the same cluster but having different DocumentRoots
serpikv Jan 8, 2015 2:21 PM (in response to jfclere)Thanks for your reply.
I understand how to configure multiple VirtualHosts on httpd.
My question is more about mod_cluster configuration in this case.
As all VirtualHosts "redirected" to the same cluster (and at the moment to the same webapps) is it possible to move mod_cluster configuration outside the virtual hosts (kind of on the main server level)? Technically does mod_cluster creates separate "instance" to server each virtual host?
-
3. Re: mod_cluster with multiple VirtualHosts redirected to the same cluster but having different DocumentRoots
jfclere Jan 9, 2015 4:32 AM (in response to serpikv)Usually you need to secure the MCPM receiving in one VirtualHost and the webapps (context) will be available in all VirtualHosts you can use UseAlias to route on Hostname: Alias additionally to just the context.
If you have multiple clusters you can use different balancer for each cluster and ProxyPass in VirtualHost but that is more a static configuration and mod_proxy_balancer is probably what you need.