We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [haproxy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

How To Use HAProxy to Set Up Load Balancing on Redhat for (Web + App)

I am trying to set up HAproxy load balancer and sticky session on Redhat Enterprise 7.7. installing the HAproxy in two node web server using Apache to be "Web-Load-balance" and two node app server ...
0
votes
0answers
7 views

kubernetes haproxy ingress, how to show ingress node IP?

I have one k8s node, 192.168.1.10 Then created HA proxy ingress from official website, kubectl create -f https://raw.githubusercontent.com/haproxytech/kubernetes-ingress/master/deploy/haproxy-...
-1
votes
0answers
17 views

behind haproxy login e-mail [closed]

I’d appreciate some help because I’m stuck. I have a public IP, where behind haproxy i have two servers (VM-s): server1.mydomain.com and nc.mydomain.com The problem that the I cannot log in on the e-...
-2
votes
0answers
5 views

Running ModSecurity on files

I want to run ModSecurity on files with HTTP requests. I have not been able to find a way to do this. Does anyone have a good idea for how to do this?
0
votes
1answer
27 views

haproxy-https service can't bind socket on restart

I have few haproxy services running and some of them couldn't restart properly for last 12 hours (and before they worked fine few days). When I realize some service is down, I check ss -tulpn for a ...
0
votes
0answers
13 views

HAproxy configuration on mac OSX

I'm trying to cluster two Apache servers with HAproxy load balancer but I didn't find the haproxy.cfg file and didn't find how to start haproxy services. I'm a beginner on MACOS. Thanks in advance.
0
votes
0answers
3 views

How to make haproxy abort connection when servers checks marks him “down”

I have a TCP-balancing haproxy for mysql with HTTP-checks. When checks marks server down haproxy stops to establish new connections, but existing one a still alive. Is it possible to make haproxy ...
0
votes
0answers
12 views

Using 2 Proxy for Reaching to Outside Server

I am using 2 proxy to route my traffic to a server.My proxies are in the same computer.I have 1 entrypoint proxy load balancer with traefik(or haproxy) and 20 nginx proxy for forwarding load balanced ...
0
votes
1answer
22 views

Why HAProxy docker container always exits?

I have a docker-compose, which spins up a HAProxy container. It uses wait-for.sh to wait for rails server to be alive. Once the connection is open, HAProxy exits. HAProxy start command is something ...
0
votes
0answers
32 views

AWS ECS 503 Service unavailable

I have an AWS ecs cluster set up that is running a number of different services using HAProxy. I had a service that was running and is now giving a 503 Service Unavailable error. I checked and nothing ...
0
votes
0answers
14 views

How to install HAProxy and configure it in an ubuntu server?

How to install HAProxy and configure it in an ubuntu server. I want to use it to map applications listening on various ports to specific URLs. For example, if an app called page-designer is listening ...
0
votes
1answer
194 views

HAProxy 2.0.5: Unable to convert message in HTX for HTTP return code 503

I am so sorry for any unconvenience as I am very fresh new to HAProxy and now I have one issue which may not really an issue but as I am fresh new to this tool I don't know how to fix it. I was using ...
0
votes
1answer
47 views

Haproxy load balancer does not work from centos7

I am trying to set up HAproxy load balancer on centos 7, however I am unable to get it working. From services it sais that it is running, but the stats page wont open and also it does not direct to ...
0
votes
1answer
46 views

Haproxy configuration

can anyone explain more in depth about HAproxy health check configuration. I don't really understand this part option httpchk HEAD / HTTP/1.1 I kept getting error 400 when applying this code. ...
1
vote
0answers
71 views

How to capture multiple HTTP headers with the same name (ex.: set-cookie) in HAProxy?

I want to capture and log all the Set-Cookie headers in HTTP responses. The problem is that I only get the last Set-Cookie in my log lines. I am using haproxy 1.7 in docker (FROM haproxy:1.7). My ...
0
votes
0answers
259 views

HAproxy Transparent Proxy doesn't working

I would like to know IP client in backend server by HAproxy. I have had config my follow this URL for transparant mode: https://www.haproxy.com/blog/howto-transparent-proxying-and-binding-with-...
0
votes
0answers
15 views

HAProxy wont accept socket command

I have enabled the HAProxy socket API on localhost on port 9999. Everything does seems to work fine, besides adding acl seems to be impossible. The following works fine inside the config but not ...
0
votes
0answers
21 views

How can I proxy on specific context path?

We are currently relocating an application that uses context to select "profiles" (define app properties and JDBC connection string) For now, the URL is this kind: https://www.foo.com/test/company/...
1
vote
1answer
291 views

HAPROXY configuration for DSR

I have to do load balancing in TCP mode using HAproxy. The backend application needs to use the client source IP. The only solution I found over the internet is configuring haproxy in DSR mode. I ...
0
votes
0answers
14 views

Is it possible to know the number of users connected by looking haproxy stats?

When I look the stats page ogf my haproxy, I wonder if the term "session" represents the number of different users who are connected to my haproxy.
0
votes
1answer
393 views

Haproxy redirect internal domain to external with ssl - 503

I have a haproxy lb which is redirecting traffic from myexternaldomain.com to myinternaldomain.com with an ssl as below: global log /dev/log local0 log /dev/log local1 info ...
0
votes
0answers
374 views

modsecurity WAF with nignix on HAproxy setup

This is my first question so i apologies in advance for any mistakes. We have a setup with 2 HApoxy servers as load balancer which points to different web servers. Now we want to implement WAF in ...
0
votes
0answers
151 views

HAProxy not logging

My HAProxy 1.8.19 on Debian-9 is logging starts and stops but not traffic. Using the logger tool I can log anything I want to the proper files, so I can't figure out what's wrong. Here is mylogging ...
0
votes
0answers
31 views

Addressing Containerized haproxy instances in an active/passive configuration using corosync/pacemaker?

We are attempting to use corosync/pacemaker to configure two haproxy instances to be in an active/passive setup as per this guide. https://www.digitalocean.com/community/tutorials/how-to-create-a-high-...
0
votes
0answers
19 views

Cluster Replication of Authenticated Sessions Still Requires Login Upon Failover

I am trying to configure a 2-Node Cluster using Delta Manager to Replicate Authenticated Sessions. We are using HAproxy as the load balancer configured for sticky sessions. Load balancer appends ".s1"...
0
votes
0answers
387 views

haproxy rewrite without redirect

Is there any ways to rewrite the url without redirect in haproxy? For instance, the domain is www.test.com, the uri is /test, I want to point to www.test.com/abc when I try to www.test.com/test. The ...
0
votes
0answers
107 views

listening on interface using haproxy

currently i am trying to use haproxy, using in tcp mode. I have compiled the code by enabling tproxy. my configuration looks as below frontend http_front bind *:80 transparent mode http #...
2
votes
0answers
361 views

Can’t SSH into GitLab when it’s accessible via HAProxy

I have a GitLab instance in docker-compose on a VM in my home network. It's running behind HAProxy proxy and accessible on git.example.com:443. To be able to access them both inside my home network ...
0
votes
0answers
111 views

HAProxy is using random backends for different subdomains

I'm new to HAProxy. What I was trying to do was basically have 3 different subdomains proxy to 3 different things. But when I visit any of the urls [grafana.example.com, git.example.com, nextcloud....
9
votes
1answer
7k views

Multiple processes listening on the same port; how is it possible?

Multiple processes are listening on same port. But as far as I know only one process can listen on a port. Is it possible (how?) that multiple processes can listen on same port? $ sudo lsof -n -i :80 ...
6
votes
1answer
3k views

haproxy wait until dns resolve backend

I have 2 docker containers in the same network - web and proxy running haproxy with backend backend web server web web:80 check Also init-addr is set to last,libc,none, so it does not fail if ...
1
vote
1answer
916 views

Proxy all traffic without matching the domain names in Haproxy

I'm using Haproxy in my VPS for stream some video content. with my current setup I need to mention each every domain in the front-end and back-end section in my Haproxy.conf file. if I need to watch ...
0
votes
1answer
810 views

HAProxy 1.7.2 refuses to match Host in ACL

I have a weird scenario where HAProxy is being used to reverse proxy several sites from a single IP. No problem there, this worked before in an earlier version. This latest install and with a similar ...
9
votes
1answer
19k views

how to view haproxy status on the command line using a socket

In the examples, I have seen on the net https://www.datadoghq.com/blog/how-to-collect-haproxy-metrics/#show-me-the-metrics You can use the command line echo "show stat" | nc -U /var/lib/haproxy/...
0
votes
1answer
431 views

Apache's ssl mode while using SSL Termination setup with Haproxy?

Do we have to disable Apache's ssl mode using the command a2dismod ssl for using the mentioned setup as while starting haproxy, it is complaining about port 443 is already being used?
0
votes
1answer
3k views

Allow specific IPs to access sub URLs in HAProxy

In HAPRoxy I need to block all URLs except for two IP addresses for a specific sub-domain. For Example: My base URL is www.example.com. And I need to allow only 1.1.1.1 and 2.2.2.2 to access the www....
0
votes
0answers
506 views

VMWare NSX loadbalancer seems to set Connection: closed header

We have an IIS server that sits behind an NSX load balancer. We're using NTLM to authenticate with IIS, but it's only working if I hit the server directly, and not if I hit it through the load ...
0
votes
1answer
117 views

Multiple servers share storage space

I tried to build a simple hosting system with only one server, but now I would create a simple network with 2 servers and a load balancer. I was wondering if is it possibile that 2 different servers ...
12
votes
1answer
17k views

haproxy configuration errors

Here's my configuration global log /dev/log local0 log 127.0.0.1 local1 notice maxconn 4096 user haproxy group haproxy daemon defaults log ...
0
votes
2answers
3k views

Running two instance of haproxy on the same machine

I have haproxy running on machine A. How can I create a another instance of it? (having its own configuration file). I tried to make a copy of haproxy in /etc/ with different name and added it to init....
1
vote
1answer
160 views

Move from keepalived to HAProxy

I have four web server under two keepalived load balance server, so I can be sure that the active keepalived server will load balance the traffic on my four web servers, and when it fails the passive ...
1
vote
0answers
460 views

How to enable http response buffering on HaProxy?

I hope I understand it right: HAProxy is able (http-mode) to buffer the output (response) from a backend server, so that the server process is made free as soon as possible. A slow client would ...
1
vote
0answers
367 views

How to make haproxy use a list of proxy?

squid can use a proxy list like: cache_peer %(host)s parent %(port)s 0 no-query weighted-round-robin weight=%(weight)s connect-fail-limit=2 allow-miss max-conn=5 then just access squid port, it ...
4
votes
1answer
5k views

HAProxy works fine ran manually, but as a Systemd-service fails to load SSL pem-file

I'm trying to set up SSL on a Fedora 22 -server running HAProxy. Here's the config (/etc/haproxy/haproxy.cfg): global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile ...
2
votes
3answers
6k views

Route SSH traffic based on domain with HAProxy

I'm currently building my own little cluster at home and I'm trying to get SSH routing (load balancing) to work with HAProxy. I have figured out how to route HTTP traffic but I'm struggling with SSH. ...
2
votes
1answer
2k views

haproxy- setting up an TCP connection cache for an HTTP server

I am trying to setup a local TCP connection cache to provide access to a remote HTTP server for multiple local applications. I have started to configure haproxy to do this: global log /...