Re: ACL HAPROXY (check servers UP and DOWN) and redirect traffic

2022-02-19 Thread Lukas Tribus
On Sat, 19 Feb 2022 at 18:38, Carlos Renato wrote: > > Yes, > > In stats server2 is DOWN. accept the VM's network card. Provide detailed logs please. Lukas

Re: ACL HAPROXY (check servers UP and DOWN) and redirect traffic

2022-02-19 Thread Carlos Renato
Hi Lukas, Excuse me. It did work. One detail was missing. Thanks. Em sáb., 19 de fev. de 2022 às 14:38, Carlos Renato escreveu: > Yes, > > In stats server2 is DOWN. accept the VM's network card. > > Em sáb., 19 de fev. de 2022 às 13:32, Lukas Tribus > escreveu: > >> On Sat, 19 Feb 2022 at 16

Re: ACL HAPROXY (check servers UP and DOWN) and redirect traffic

2022-02-19 Thread Carlos Renato
Yes, In stats server2 is DOWN. accept the VM's network card. Em sáb., 19 de fev. de 2022 às 13:32, Lukas Tribus escreveu: > On Sat, 19 Feb 2022 at 16:15, Carlos Renato wrote: > > > > Hi Lukas, > > > > Thanks for the reply and willingness to help. > > > > I did a test and it didn't work. I drop

Re: HAProxy thinks Plex is down when it's not

2022-02-19 Thread Lukas Tribus
Hello, On Sat, 19 Feb 2022 at 17:46, Moutasem Al Khnaifes wrote: > but for some reason HAProxy thinks that Plex is down John already explained this perfectly. > the status page is inaccessible Your configuration is: > listen stats > bind localhost:1936 [...] > stats uri /

Re: HAProxy thinks Plex is down when it's not

2022-02-19 Thread John Lauro
Here is your answer: Layer7 wrong status, code: 401, info: "Unauthorized" Your health check is not providing the required credentials and failing. You can either fix that, or as you only have one backend, you might want to remove the check as it's not gaining you little with only one backend. On

HAProxy thinks Plex is down when it's not

2022-02-19 Thread Moutasem Al Khnaifes
### Detailed Description of the Problem I use HAProxy to get access to NextCloud and Plex from outside the network. but for some reason HAProxy thinks that Plex is down, and the status page is inaccessible ### Expected Behavior going to nextcloud.domain.com and plex.domain.com should redirect m

Re: ACL HAPROXY (check servers UP and DOWN) and redirect traffic

2022-02-19 Thread Lukas Tribus
On Sat, 19 Feb 2022 at 16:15, Carlos Renato wrote: > > Hi Lukas, > > Thanks for the reply and willingness to help. > > I did a test and it didn't work. I dropped the server2 interface and only > server1 was UP. > Traffic continues to exit through the main bakend. My wish is that the > traffic is

Newbie question

2022-02-19 Thread Tom Browder
I am running a single Apache httpd server (2.4.52) with multiple virtual sites, all under TLS with individual Let's Encrypt certs using Apache's managed domain feature. The setup has worked well for years (mostly static, but some using CGI). Now I want to be able to use a reverse proxy to enable t

Re: ACL HAPROXY (check servers UP and DOWN) and redirect traffic

2022-02-19 Thread Carlos Renato
Hi Lukas, Thanks for the reply and willingness to help. I did a test and it didn't work. I dropped the server2 interface and only server1 was UP. Traffic continues to exit through the main bakend. My wish is that the traffic is directed to the backup server. Any tips? Thank you very much. Em sá

Re: ACL HAPROXY (check servers UP and DOWN) and redirect traffic

2022-02-19 Thread Lukas Tribus
Hello, I suggest you put your backup server in a dedicated backend and select it in the frontend. I guess the same could be done with use-server in a single backend, but I feel like this is cleaner: frontend haproxy option forwardfor bind server.lab.local:9191 use_backend backup_servers i

ACL HAPROXY (check servers UP and DOWN) and redirect traffic

2022-02-19 Thread Carlos Renato
Can anyone help me? How to create an ACL to use the backup server if a server goes DOWN. So, if the two backend servers are UP, I use the registered servers. If one (only one) becomes unavailable, traffic is directed to the backup server. Below my settings. frontend haproxy option forwardfor