On Wednesday 17 March 2021 at 17:33:46, Jason Long wrote: > The load balancing is different. It is kind of HA. Yes. > When my real server is down then Apache forward requests to my backup server That is HA. > and my website never down. Right. > Excuse me, according to below diagram, is my configuration work in a real > scenario? > > The Internet ---> Apache Reverse Proxy ---> Apache Web Server 1 (IP: > 1.2.3.4, Name: Yahoo.com) ---> Apache Web Server 2 (IP: 1.2.3.5, Name: > Google.com) Now, do you *really* mean yahoo.com and google.com? If you do, then no, this can never work. > My Virtual Host configuration is: > > <VirtualHost *:80> > ServerName yahoo.com > ErrorLog /var/log/httpd/Yahoo_error_log > TransferLog /var/log/httpd/Yahoo_access_log > <Location "/"> > ProxyPass http://1.2.3.4/ > ProxyPassReverse http://1.2.3.4/ > </Location> > </VirtualHost> > > <VirtualHost *:80> > ServerName google.com > ErrorLog /var/log/httpd/Google_error_log > TransferLog /var/log/httpd/Google_access_log > <Location "/"> > ProxyPass http://1.2.3.5/ > ProxyPassReverse http://1.2.3.5/ > </Location> > </VirtualHost> So, that defines two VirtualHosts. One requires requests to come in for "yahoo.com" (however you manage that using DNS) and it forwards those on to 1.2.3.4 The other VirtualHost requires requests to come in for "google.com" and it forwards these to 1.2.3.5 There is no failover, no high availablility, no load balancing, no interaction between the two. Antony. -- I lay awake all night wondering where the sun went, and then it dawned on me. Please reply to the list; please *don't* CC me. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx