Questions tagged [haproxy]

HAProxy is a load-balancer, to spread out requests between web servers.

HAProxy is a free, open source, high availability load-balancer written in C. It handles TCP HTTP and HTTPS requests, websockets, and can offload SSL handling from the servers. There is also an entreprise version, and dedicated hardware.

71 questions
30
votes
5 answers

Does HAProxy support logging to a file?

I've just installed haproxy on my test server. Is there a way of making it write its logs to a local file, rather than syslog? This is only for testing so I don't want to start opening ports / cluttering up syslog with all my test…
IGGt
  • 2,137
  • 8
  • 28
  • 43
5
votes
1 answer

How to start HAProxy on CentOS with systemd

I'm trying to set up a simple web load balancing using CentOS 7.5 (64bit, kernel 3.10), HAProxy 1.8.13 and systemd. It seems that the HAProxy configuration is OK, but starting the application gives me a headache. I tried it with init.d once but was…
ArgisIsland
  • 151
  • 1
  • 1
  • 3
4
votes
1 answer

systemd service and multiple haproxy instances

I have a requirement to run a couple of instances of haproxy and I need to update the haproxy.service file to add the second command / instance. Google lead me to adding the second command on the same ExecStart= option, separated by a semicolon,…
Aftab
  • 43
  • 1
  • 4
4
votes
2 answers

Iptables can't forward from/to internal LAN with proxmox

I have an host with proxmox with single public ip and some virtual machine installed whit webservers and multiple doimains, the first VM is a proxy with haproxy that forward the request to other VM and in proxmox host i have this iptables…
stecog
  • 2,221
  • 10
  • 29
  • 39
3
votes
1 answer

How to redirect rsyslog messges from a specific unix socket to a different log file without duplication?

I have been trying to implement separate logging for haproxy. But I end up with duplicate logging and can't separate logs based on the input socket or facility alone. My sample configuration in haproxy: Global configuration: log …
GP92
  • 775
  • 6
  • 15
  • 31
3
votes
0 answers

haproxy silently fails to start up using systemd on CentOS because of missing permissions for pid file

I have a CentOS 7.4 installation with haproxy which I updated to 1.8. Haproxy fails to start, even sudo systemctl start haproxy doesn't show any output. sudo systemctl status haproxy displays this: ● haproxy.service - HAProxy Load Balancer …
Marged
  • 691
  • 2
  • 10
  • 21
3
votes
3 answers

HAproxy - add path to backend server

I'm setting up HAproxy as a reverse proxy on my NAS, because I would like to use easy to remember subdomains instead of referring to the apps on my NAS with their port numbers. I managed to get it working, except for few backend 'servers', those who…
Koenraad
  • 41
  • 1
  • 1
  • 3
3
votes
2 answers

Haproxy: use backend server like backup

To my haproxy i redirect the traffic to single server in backend, i need set another server what work only in case of failure of first server, it's possible? I read the guide, but in balance algorithm don't have found any answer
stecog
  • 2,221
  • 10
  • 29
  • 39
2
votes
1 answer

Cannot access haproxy stats socket with systemd

I am trying to disable a haproxy frontend from a systemd service in Debian 9 (haproxy 1.7.5-2). The default config sets up admin access via a unix socket at /run/haproxy/admin.sock so I use socat (1.7.3.1): /bin/sh -c 'echo disable frontend http |…
some-guy
  • 31
  • 3
2
votes
1 answer

Source-MAC Filter iptables

I have a HAProxy box with centos7 and doing load balance proxy for a smtp cluster providing mail relay to our customers. default gateway => 10.0.0.1 master-relay.example.net => 10.0.0.254 relay1.example.net => 10.0.0.10 | gateway…
Radu Radu
  • 23
  • 5
2
votes
1 answer

FIPS 140-2 compliance for Apache and Haproxy on CentOS 7

I have CentOS 7 and Apache and the Haproxy load balancer with SSL support. How to make the server compliant to FIPS 140-2? From CHAPTER 10. FEDERAL STANDARDS AND REGULATIONS | redhat.com I got the following…
user11085
2
votes
2 answers

HaProxy 1.5.8 to FTP server

I have been at this a few times and have become completely stuck in configuring this. Currently, I have this set up for an FTP server: Local PC (My MAC) -> AWS EC2 (HaProxy) -> FTP Server Here's a few things I have done so far: Confirmed Ports…
ryekayo
  • 4,705
  • 9
  • 41
  • 66
2
votes
1 answer

Is it possible to change config file location in haproxy?

I install Haproxy in /apps/haproxy/usr/local/sbin. Instead of placing config in /etc/haproxy/haproxy.cfg I want to use default config in /apps/haproxy/conf/haproxy.cfg and /etc/default/haproxy. How to start the Haproxy with the custom config…
2
votes
1 answer

Nginx Reverse Proxy setup

I currently have a few hundred web applications spread across around 20 servers, and a reverse proxy sat in front of these running Pound and Haproxy. Pound is doing the http to https redirect and SSL encryption and then forwarding on to Haproxy…
MrRichT
  • 53
  • 1
  • 7
2
votes
0 answers

haproxy serving wrong SSL certificate for a subdomain

I have a Server that runs haproxy to redirect incoming traffic to the correct process based on the subdomain. haproxy is configured to use different SSL certificates depending on the subdomain. The configuration works, however sometimes (quite often…
Ben D
  • 671
  • 3
  • 11
  • 26
1
2 3 4 5