Questions tagged [haproxy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Configuring a custom dns and proxy setup

I have a smart-dns setup, Using dnsmasq as the dns server, which always resolves to my server ip address, for a given list of domains. I want a configure either a webserver or proxy program to listen ...
loxtic's user avatar
  • 1
0 votes
0 answers
64 views

New User Configuring HaProxy for single WAN IP, multiple hosts

I've had a /29 block of static IPs available for the past six years, but with income down and rates up, and up, it's time to reduce my Internet footprint. I'm moving my self-hosted mail servers to ...
ehbowen's user avatar
  • 103
0 votes
0 answers
148 views

HAProxy: It is possible to balance requests over a persistent connection to different backend servers?

I have the following (partial) Haproxy config: frontend http-in bind *:3333 default_backend servers backend servers balance roundrobin server server1 xxxx:1234 check server ...
Geert-Jan's user avatar
  • 1,793
1 vote
1 answer
290 views

Proxying FTP Over MQTT

Considering we have established a secure connection via MQTT (Let's say to AWS-IoT /Azure etc) can we then use it to tunnel FTP server running on Embedded Device (For remote access)? If it's possible, ...
Ukhan's user avatar
  • 11
0 votes
1 answer
406 views

How To Upgrade HAProxy On Debian VM?

Does someone have clear instructions for upgrading HAProxy to the latest stable release? We're presently using 1.8.19 on a Debian VM and need to upgrade it to 2.1.3. I came across the following ...
RobTheRobot16's user avatar
0 votes
1 answer
370 views

I can't initialize a HA Kubernetes Cluster. Can anybody help me?

I'm trying to set up a HA K8s cluster using keepalived + haproxy Here's the configuration I have root@k8sHAproxy1:~# cat /etc/keepalived/keepalived.conf vrrp_script chk_haproxy { script "killall -...
Mauro Matsudo's user avatar
0 votes
1 answer
5k views

Can't reach apache server with ssl through haproxy

In my network i have a DNS server, a HAProxy server and 2 webservers. When i try to go through the haproxy (getting the domain IP from the DNS server) it gives me a different error then when i go ...
ben shalev's user avatar
0 votes
1 answer
624 views

nginx vs haproxy in private network

I am currently using haproxy on my OPNsense. It is currently also set up to serve some internal WebGUIs to pass on the LE wildcard certificate I have for my domain. Mainly stuff like unifi controller, ...
Kosta's user avatar
  • 1
1 vote
1 answer
441 views

Why HAProxy tcp-request content do-resolve is not working

i am using a combination of HAProxy (docker image v2.3.2) and Hashicorp Consul (v1.9.1) to access my VMs behind haproxy using SSH (i followed https://www.haproxy.com/fr/blog/route-ssh-connections-with-...
Abderrahmane's user avatar
0 votes
0 answers
252 views

How to create unix socket

I am installing HAProxy from source. My example conf file tries to configure a socket stats socket /var/lib/haproxy/stats level admin How can I create such a socket? I'm on CentOS 7.
onknows's user avatar
  • 817
0 votes
1 answer
3k views

HAProxy TCP mode client IP

I use haproxy to forward multiple domains from 1 IP. This works nicely. However I need the client IP to be forwarded to the endpoint, so i added send-proxy to the backend. Now the site stopped loading....
Wotikar's user avatar
  • 23
1 vote
0 answers
783 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 ...
Hasanain's user avatar
0 votes
2 answers
2k 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 ...
Drey's user avatar
  • 111
0 votes
1 answer
607 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 ...
Valtteri Luoma's user avatar
2 votes
2 answers
3k 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 ...
Naseath Saly's user avatar
0 votes
1 answer
807 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 ...
rauno45's user avatar
1 vote
1 answer
667 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. ...
IvandoTande's user avatar
1 vote
0 answers
659 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 ...
betontalpfa's user avatar
1 vote
0 answers
897 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/...
Sébastien Simonek's user avatar
1 vote
1 answer
2k 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 ...
iamvishnuks's user avatar
0 votes
1 answer
2k 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 ...
RobotJohnny's user avatar
2 votes
0 answers
2k 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 ...
cclloyd's user avatar
  • 752
15 votes
1 answer
23k 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 ...
Kundan's user avatar
  • 153
8 votes
1 answer
6k 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 ...
Alexey's user avatar
  • 363
1 vote
1 answer
3k 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 ...
rafalefighter's user avatar
0 votes
1 answer
2k 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 ...
Inquisitor Shm's user avatar
22 votes
1 answer
51k 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/...
nelaaro's user avatar
  • 13.6k
0 votes
2 answers
946 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?
Rajat Saxena's user avatar
0 votes
1 answer
4k 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....
Arvind's user avatar
  • 1
1 vote
0 answers
919 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 ...
Rob Grant's user avatar
  • 113
0 votes
1 answer
1k 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 ...
azkidenz's user avatar
13 votes
1 answer
25k 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 ...
Veerendra K's user avatar
1 vote
2 answers
6k 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....
Shiran Maor's user avatar
1 vote
1 answer
251 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 ...
Edik Mkoyan's user avatar
1 vote
0 answers
680 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 ...
Frank59's user avatar
  • 111
1 vote
0 answers
416 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 ...
Mithril's user avatar
  • 937
4 votes
1 answer
6k 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 ...
Martti Laine's user avatar
2 votes
3 answers
11k 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. ...
Constantin Jacob's user avatar
2 votes
1 answer
3k 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 /...
mathieu's user avatar
  • 103