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
1 answer

API Connect 2018 Developer portal installation failure

Good day. I was installed API Connect 2018 management and portal hosts (version 2018.2.10) using Install Assist utility (apicup). Management server started ok, i see APIConnect is UP after 'apic status' command. But i have problem with deploying…
0
votes
2 answers

Modify http headers for specific URL’s with HAProxy

For a specific URL, I'd like to set cache-control headers for static assets such as /images/*, /js/*, etc. that tells the browser to use the local cache for lets say 30 days instead of fetching a new version. How can I accomplish this via haproxy…
Ben
  • 3,800
  • 18
  • 65
  • 96
0
votes
1 answer

haproxy http request reponse

I have following configuration in /etc/haproxy/haproxy.cfg > frontend LB > bind *:80 > reqadd X-Forwarded-Proto:\ http > default_backend LB > > frontend LBS > bind *:443 ssl crt /etc/ssl/xy.pem > reqadd…
G aulakh
  • 1
  • 1
  • 1
0
votes
1 answer

DDOS attack protection HAPROXY SSL

I'm trying to protect my server from DDOS attacks, my server always have a redirection to the SSL/HTTPS protocol. but I'm using the next configuration and it's not working frontend http-in bind *:80 stick-table type ip size 1m expire 5m…
BlueSeph
  • 123
  • 1
  • 7
0
votes
1 answer

haproxy backup / failover for servers one by one

i run haproxy 1.6 in our environment for different applications. Former we used a Cisco product. Haproxy has a lot of advantages but there is one thing i could not configure with haproxy or i do not know how to do it. Lets assume i have a backend…
kaniggl
  • 1
  • 1
  • 2
0
votes
1 answer

HAProxy agent-check over http

I have to setup haproxy with agent-check, the backend servers reporting themselves their weight ("28%" for example) over http. Seems like haproxy can't speak http with it's agents, which seems weird. Is there no way to do it ? I've tried this : …
Ulrar
  • 387
  • 6
  • 23
0
votes
1 answer

Haproxy Passthrough SSL and http logs?

I am running a proxy service, thus I can only use TCP passthrough, or users would get certificate warnings. Unfortunately very little is known in tcp logs, and I want to ensure no illegal activities are being done on the server. So the question is -…
0
votes
1 answer

HAProxy redirect SSL only for specific subsite

i have a problem with redirect http to https only for one subsite. Here is my config: acl is_root path -i /subsite/ redirect scheme https code 301 if !{ req.hdr(X-Forwarded-Proto) -i https } is_root when i delete is_root from redirect scheme…
Redbeard
  • 1
  • 2
0
votes
2 answers

HaProxy using IIS on same port with different host headers

I'm running version HA-Proxy version 1.8.12-1ppa1~bionic 2018/06/27 on Ubuntu. I'm trying to load balance requests to load.mysite.com to two different windows servers with IIS. The servers also have other website running on IIS with the same ports.…
MonkeyDreamzzz
  • 161
  • 2
  • 10
0
votes
1 answer

HAproxy a delay between switching, when primary server to come back?

I have Automatic failover and failback configuration HAPROXY: defaults mode http option http-server-close timeout client 20s timeout server 20s timeout connect 4s frontend ft_app bind 10.0.0.100:80 name app default_backend bk_app backend…
0
votes
1 answer

how to disable HSTS in haproxy

I have a haproxy-ssl-terminated (haproxy 1.5.8 2014/10/31, debian jessie stock) test website, where the certificate expired. I'd like to be able to use the site while the new certificate arrives, but chrome and firefox tell me I have HSTS enabled. I…
P.Péter
  • 569
  • 2
  • 6
  • 24
0
votes
0 answers

HaProxy X-Forwered-For sends when already present incoming request

I'm trying to get X-Forwarded-For when original client request contains that header and pass it to the application layer in using HAProxy. any help will be appreciated.
0
votes
2 answers

Transparent HAProxy, clients cannot connect

I have problems with transparent HAProxy. I use Centos 7 with ius-repo, so compiled with tproxy support. No fancy things here, just the basics. Flat IP space, no routing involved (yet). Have other options set as well (ipforward, non local bind). I…
0
votes
1 answer

Apache closes connection too early

I am trying to debug an issue we are having with some embedded devices when they are downloading Firmware over-the-air and closing connections too early, failing to get all data. I tried downloading the file with curl and wget but it gets downloaded…
markz
  • 173
  • 1
  • 4
0
votes
0 answers

AWS ECS scaling with custom load balancer

I am currently using AWS Elastic Container Service. It is running with a HAProxy server acting as our load balancer, along with a lambda that acts as a service discovery mechanism for the servers. Our servers have a custom scaling metric based on…
Ramzi C.
  • 101
  • 3