Re: Apache Reverse Proxy for more than one website.

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

 



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.

Log tell me:

# cat /var/log/httpd/error_log
[Wed Mar 17 15:33:35.529425 2021] [proxy:error] [pid 7486:tid 7532] (113)No route to host: AH00957: HTTP: attempt to connect to 192.168.1.4:80 (192.168.1.4) failed
[Wed Mar 17 15:33:35.529515 2021] [proxy_http:error] [pid 7486:tid 7532] [client 10.0.3.2:60456] AH01114: HTTP: failed to make connection to backend: 192.168.1.4





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





On Wednesday 17 March 2021 at 12:34:44, Jason Long wrote:

> I'm a newbie and as you said you are here from 2010. OK, tell me how can I
> configure an Apache Reverse Proxy to service to the multiple web servers?

I did a Google search for "Apache reverse proxy multiple web servers".

https://stackoverflow.com/questions/50611098 was the fourth result and gives 
you a pretty complete example.


Antony.

-- 
I thought I had type A blood, but it turned out to be a typo.

                                                  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