Questions tagged [haproxy]
The haproxy tag has no usage guidance.
38
questions
0
votes
0
answers
22
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 ...
0
votes
0
answers
68
views
525 error from Cloudflare for sites managed by Virtualmin behind HAProxy
I have 3 web servers behind my firewall. They will have various SSL websites hosted on them and I'm port forwarding traffic through my firewall on port 443 to an HAProxy server which is handling all ...
0
votes
1
answer
166
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, ...
0
votes
1
answer
180
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 ...
0
votes
1
answer
279
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 -...
0
votes
1
answer
3k
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 ...
0
votes
1
answer
433
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, ...
1
vote
1
answer
291
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-...
0
votes
0
answers
129
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.
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....
1
vote
0
answers
610
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
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 ...
0
votes
1
answer
489
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 ...
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 ...
0
votes
1
answer
731
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 ...
1
vote
1
answer
402
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
0
answers
575
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 ...
1
vote
0
answers
680
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
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 ...
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
...
2
votes
0
answers
1k
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 ...
14
votes
1
answer
20k
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 ...
7
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 ...
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 ...
0
votes
1
answer
1k
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 ...
18
votes
1
answer
46k
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
2
answers
846
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
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....
1
vote
0
answers
820
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
1
answer
915
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 ...
13
votes
1
answer
23k
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 ...
1
vote
2
answers
5k
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
1
answer
219
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
0
answers
629
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
0
answers
392
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
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 ...
2
votes
3
answers
10k
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
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 /...