Questions tagged [haproxy]

HAProxy is an open source, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing.

See also:

2099 questions
0
votes
0 answers

How to automatically remap application using a script file and Haproxy?

I have asked the same question before but i din't get any answers for it.I know how to manually map applications listening on various ports to Specific Url. For example, adding the below Haproxy configuration will let me map the URL…
0
votes
1 answer

http status 404 error while using acl path beg in haproxy?

I want to this using HAProxy only. I have the Tomcat homepage running on http://206.189.22.155:30000/. Here 206.189.22.155 is the IP address of my Ubuntu server. I used the following HAProxy configuration to map it to the URL…
0
votes
1 answer

How to use http-request redirect or http-request set-path in HAproxy?

I am a newb to HAProxy, and am bashing my head against this one. I’m trying to set up what I think is a fairly simple exercise in mapping applications listening on various ports to specific URLs.Like if my app page-designer is listening at…
0
votes
0 answers

HAProxy backend round robbin with fixed path

Please help me out, We're using HAProxy (my-proxy.com) and on the backend side, we have two endpoints - backend1:4000/foo/abc - backend2:4000/bar/def Now, when a client makes a request to my-proxy.com, we want to route that request to one of the…
0
votes
1 answer

unable to map application to specific URL using Haproxy?

I want to map an application called "page-designer" listening at http://206.189.22.155:5000 to the URL http://206.189.22.155/page-designer. Currently I have added the necessary configrations for the front end and backend in the main config file of…
0
votes
0 answers

Haproxy Centos 7

I am a newbie in setting up Haproxy and Nginx server. However, i successfully setup Haproxy and two Nginx servers (All 3 different instances from AWS). Case 1: Haproxy (32.85.75.125) , Nginx1 - Web Server(34.214.118.85 :80) , Nginx2 - ApI…
Ravi
  • 111
  • 5
0
votes
1 answer

HAProxy defaults configuration for tcp mode

We have setup an HAProxy in TCP mode sitting in front of multiple HTTPS application servers. So far things are working well but wanted to ask about these settings. In my defaults section I have the following settings, which I have commented out…
A X
  • 469
  • 4
  • 10
  • 31
0
votes
0 answers

haproxy load balancer with more servers or strong servers

background is that we're running REST API servers with nginx+php-fpm, with haproxy as the load balancer. issue is that we're getting 502 issues sometimes when on heavy loading. my question is that, which one would be better? 16 servers with 4 GB 2…
Fayland Lam
  • 103
  • 1
  • 7
0
votes
1 answer

How to do / to /index redirection for an application when I am using haproxy ingress rules

I am using HAProxy Ingress Controller and have rules set for /index and /app. I want any traffic on / to be redirected to /index. How can I achieve this? I Have 4 deployments via haproxy, default-backend (on / gives 404 and /healthz gives 200),…
namrata
  • 113
  • 5
0
votes
0 answers

HAProxy balancing on header while hiding it from the backend

I'm trying to set up HAProxy such that it picks a backend based on a header value. But I also want to hide that header from backends. My config: defaults mode http timeout connect 5s timeout client 5s timeout server 5s listen lb bind…
dnt
  • 3
  • 1
0
votes
1 answer

Reqrep does not update my query string on HAPROXY 1.5.18

I want my HAPROXY 1.5.18 to update a parameter in the query string (&mc=cg to &mc=cd) I have this config : global user haproxy group haproxy pidfile /var/run/haproxy.pid daemon defaults log global mode …
Tonio
  • 1
0
votes
1 answer

HAProxy URL Rewrite gives 400 Bad Request and NOSRV

I am trying to rewrite part of a uri using reqrep. haproxy.cfg (original) global log 127.0.0.1 local2 daemon maxconn 256 defaults mode http log global option httplog timeout connect 5000ms timeout client 50000ms timeout server…
ryanp102694
  • 101
  • 3
0
votes
0 answers

Dropped connection with HAProxy in TCP mode + "transparent client IP"

Basic Setup We are running HAProxy in a pair of PFsense boxes. In front, we're serving a bunch of IP adresses, and for each IP address, we have a pair of SSL offloaders behind this. The HAProxy is used to loadbalance between the two. The config is…
rmalchow
  • 176
  • 8
0
votes
1 answer

OCSP client certificate validation

For a home automation project I have created an API (written in ASP.NET so hosted in IIS) and written my own Android app to communicate with this API. To prevent people from accessing specific endpoints in this API, I want to protect the endpoints…
Roel
  • 3
  • 1
0
votes
0 answers

Blocking traffic direct to backend server haproxy

I have the following problem. I have set up a reverse proxy using HaProxy. Now there are still users accessing the Backend IP Direct. And thus (unprotected) accessing the infrastructure without the reverse proxy. I would like the traffic to be…
M. Antony
  • 3
  • 1