Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [haproxy]

The tag has no usage guidance.

13
votes
3answers
44k views

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 / ...
4
votes
1answer
4k views

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 ...
4
votes
2answers
2k views

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 ...
3
votes
1answer
3k views

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 ...
2
votes
2answers
1k views

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 ...
2
votes
1answer
1k views

Public HTTP/HAProxy server also is a VPN… should it do both?

I have a HTTP/HAProxy server. It also is the OpenVPN server for my network (all my servers are connected to it). I expect my website to grow dramatically soon, so I am worried if this single point of ...
2
votes
1answer
3k views

Use HAProxy to tunnel SSH through https

I have a server with Apache webserver on it and many websites running on http (port 80) and https (port 443). I would like to use a proxy on port 443 in between Apache and the user. In this page, ...
2
votes
1answer
2k views

Troubleshooting HAProxy on RHEL7

I am on a RHEL7 system. I am new to haproxy. I think I have some sort of problem. Here is address that I'd like to use. [root@haproxy-el7-001 haproxy]# grep 1936 /etc/haproxy/haproxy.cfg bind 10....
2
votes
1answer
77 views

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 ...
2
votes
0answers
492 views

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 ...
2
votes
0answers
264 views

bonding multiple proxy connection

I want to use multiple proxy servers at the same time to speed my downloads. Reverse proxy products such as haproxy and nginx can use multiple proxy servers, but only one proxy per session. Client---...
1
vote
1answer
4k views

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 ...
1
vote
2answers
1k views

Why haproxy logs status code 200 when using “http-response set-status <not-200>”?

I am using haproxy 1.7.8. I have a config that blocks requests with some specific abusers domains in HTTP Referer header. Important parts of my haproxy config looks like this: frontend ...
1
vote
1answer
257 views

Deployment of haproxy between devices and Syslog server

Below is the current architecture of Syslog-NG to avoid single point of failure. Currently devices send same syslog message to two syslog servers listening on UDP port 514. Each server stores the ...
1
vote
1answer
611 views

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

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 ...
1
vote
1answer
478 views

Multiple puppetmaster behind load balancer

We build two puppet master on openstack cloud and put them behind LBaasV2 (haproxy) load balancer, also we have separate puppetDB and PuppetCA server to handle certificate. |-...
1
vote
1answer
2k views

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 ...
1
vote
1answer
678 views

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 ...
1
vote
1answer
407 views

How to load balance mutiport traffic using HAProxy

I have 2 servers that host an application that listens to mutiple ports. Is there a way to load traffic between these servers using HAProxy? I tried this in configuration, but it didn't work: ...
1
vote
1answer
18 views

HAProxy ignores nbproc

In our test environment we've identified a strange HAProxy behavior. We're using the standard RHEL 7 provided haproxy-1.5.18-8.el7.x86_64 RPM. According to our understanding, the total number of ...
1
vote
0answers
3k views

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: ●...
1
vote
0answers
57 views

How to add ngnix behind haproxy server

I have setup nginx web server and I want to do the load balancing using haproxy server. I have done these using apache but unable to do it for nginx. Below the apache settings which are working for ...
1
vote
0answers
194 views

How to route to Virtual IP as gateway

I have environment on Centos 6.7 Final, 2 Loadbalancer failover (Haproxy, keepalived), 3 Web Server (nginx - PHP-Fpm). LB1 (Public x.x.x.233, Private 10.110.120.21), LB2 (Public x.x.x.235, Private 10....
0
votes
1answer
1k views

How to remove port number from url?

My application "XY" running on port 1234 in tomcat server. I'm using HA-Proxy for loadbalancing. So in loadbalancing my front end port is 5678 to access the "XY" application through browser. Right now,...
0
votes
1answer
798 views

How to get “zero downtime” on HAProxy with a load balancer configuration?

The scenario is, I have two web servers both are running Nginx on it. Also I have configured HAProxy after the LB (load balancer) for both the servers. I've checked with Heartbeat, but no luck to ...
0
votes
3answers
5k views

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 ...
0
votes
1answer
264 views

CARP Interface Doesn't Respond to Traffic

I have two OpenBSD boxes on running as Gen1 VMs on Hyper-V 2016; the VMs are split across two Hyper-V hosts. The NICs associated with the CARP pseudo interface do have MAC address spoofing enabled; ...
0
votes
0answers
18 views

HAProxy & WordPress in subdirectory — login into wp-admin redirects to root

I have two VPS running. One is running HAProxy and another one is running WordPress. Both VPS has private networking enabled and I can curl the WordPress site fine from HAProxy server using its ...
0
votes
0answers
22 views

How to use haproxy for outgoing requests?

I am trying to create a tls link between two haproxy instances. Each instance is installed on a machine which have some apps that need to talk with each other using the proxy. I want the haproxy ...
0
votes
1answer
112 views

Getting “ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value” Error using mariadb

While creating a haproxy_check user in MariaDB I am getting error ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value, what I need to do?
0
votes
0answers
14 views

Is “Least-Connection” in “IPVS” and “Least-Connection” in Haproxy have same effect?

Is Linux-IPVS perform Round-robin in all same least connection servers? IPVS wiki: Least-Connection Scheduling The haproxy documentation: leastconn The server with the lowest number of ...
0
votes
0answers
42 views

How to expose multiple api's for same set of backend servers in haproxy

I'm trying to create multiple endpoints for my service which is exposed to world through haproxy. My service is something like http://abcdomain.com/swagger-ui.html hitting this url provide some info ...
0
votes
0answers
30 views

HAproxy / rewrite local ip to external ip

I have a local cluster and an external client on the internet. The solution is communicating on several ports, but though a HAproxy upstream LB. The cluster handles many other solutions on the local ...
0
votes
0answers
228 views

HAProxy didn't start as service

Did need to configurate and start HAproxy from User without SUDO rights. in general it turned out to be done. /data/haproxy/haproxy -f /etc/haproxy/haproxy.cfg stdout: [WARNING] 198/141606 (119143) ...
0
votes
0answers
25 views

Haproxy reverse proxy WITH app redirects

I have a fairly simple haproxy setup working fine> publicdomain.com/web1 --> loads--> hiddendomain1.com/ publicdomain.com/web2 --> loads--> hiddendomain2.com/ publicdomain.com/web3 --> ...
0
votes
2answers
259 views

haproxy pass origin IP in galera cluster db

We have one galera cluster, mariadb version 10.3 and haproxy. We want the users to connect like this client->haproxy->galera_cluster. The user we create in the database we allow the IP to the client....
0
votes
1answer
84 views

add a header to incoming http request in a server

I have a ubuntu 16.04 server. It runs nginx webserver for the frontend part. Also the backend application runs in the same server. Now the requirement is to add header to incoming http requests. And ...
0
votes
1answer
52 views

2-way TLS Using HAProxy Authenticates with Command Line but Fails in Browser

For a proof of concept development, I have an HAProxy server running on my local machine (OSX) which is expecting to make a 2-way TLS with any client and then forward that client to a web server. I ...
0
votes
0answers
5k views

Why I have a HAproxy error 503 while web servers are up and running?

3 months ago I configured my HAproxy to balance 2 Apache webservers. Since then everything is up and running. Today I woke up seeing a HAproxy 503 error. When I checked the its web stats I saw the ...
0
votes
0answers
230 views

HAproxy wont see Apache after uninstall Nginx, why?

I have a website I need to mount and I'm doing so with an HAproxy as load balancer, 3 webservers, 1 memcached, another HAproxy and a mysql galera cluster with 3 servers. All in CentOS 7. Anyway I ...
0
votes
0answers
760 views

HAProxy with Roundrobin working only on 2 of 3 MySQL servers, why?

Good day. I'm following this article to configure HAProxy to balance with roundrobin between 3 MySQL servers (db1, db2, db3) in a MariaDB Galera cluster (working perfectly). However I have a problem....
0
votes
0answers
731 views

haproxy removing mod_expires set by apache

I've haproxy server which is routing requests to different web service instance based on rules. The web service instances have apache running at port 80. Now, I'm trying to set some expiry header by ...
0
votes
0answers
1k views

HAproxy: redirect from IP to hostname

I have a proxmox host with multiple VM and multiple webserver, i have a VM with haproxy that redirect external request to internal VM. I need redirect IP request to hostname, if in my browser i type ...