Re: Apache Reverse Proxy for more than one website.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Antony.
No, Google and Yahoo are exmaple.

> however you manage that using DNS

You meant was my DNS server that when a client write "google.com" in his\her browser and it forward to my Reverse Proxy server with that name and my Reverse Proxy server forward that request to properly server. Right?






On Wednesday, March 17, 2021, 08:17:29 PM GMT+3:30, Antony Stone <antony.stone@xxxxxxxxxxxxxxxxxxxxx> wrote: 





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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux