No, I don't need a load balance. Let me clear it. Consider below diagram:

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)

Please look at: https://miro.medium.com/max/667/1*v4Pp0pG5WMbknprejifVmw.png

I want my Reverse Proxy service to these web servers. Each servers has a 
different domain name and IP address. My Yahoo.com server maybe turned off 
or...but I want my Apache Reverse Proxy service to Google.com server.

Is it clear? Examples that I found was about subdomain or...







On Wednesday, March 17, 2021, 03:43:26 PM GMT+3:30, Eric Covener 
<cove...@gmail.com> wrote: 





On Wed, Mar 17, 2021 at 8:09 AM Jason Long <hack3r...@yahoo.com.invalid> wrote:
>
> Thank you.
> I saw https://stackoverflow.com/questions/50611098. I tested it, but got the 
> same result.
> I changed my Virtual Host file as below:
>
> <VirtualHost *:80>
>      ServerName node3
>      ErrorLog /var/log/httpd/error_log
>      TransferLog /var/log/httpd/access_log
>      <Location />
>          ProxyPass  http://192.168.1.4/
>          ProxyPassReverse  http://192.168.1.4/
>      </Location>
>    </VirtualHost>
>
>
>    <VirtualHost *:80>
>      ServerName node4
>      ErrorLog /var/log/httpd/error_log
>      TransferLog /var/log/httpd/access_log
>      <Location />
>          ProxyPass  http://192.168.1.20/
>          ProxyPassReverse  http://192.168.1.20/
>      </Location>
>    </VirtualHost>
>
>
> Node3 and Node4 are two Apache web servers.
> When I disconnected node3, my Reverse Proxy must forward requests to the 
> node4 but it couldn't.

You never mentioned disconnecting node3. The subject of this thread,
of your many threads, implies two different websites not 1 website
with two backend servers.
Nothing in this configuration tells Apache to load balance between the
two backend servers.

If this is your requirement, you need to look here:
https://httpd.apache.org/docs/2.4/mod/mod_proxy_balancer.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to