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

haproxy domain redirect not working

https://www.foo.bar is my main domain. I want to redirect as well everything to bar.foo. It works fine with http requests, but if I try https://bar.foo, I get a certificate error and the redirect to https://www.foo.bar does not occur. The relevant…
foo bar
  • 11
  • 3
0
votes
0 answers

HAProxy custom balancing rules based on http header

I need to set up a HAProxy to work in a following way. Let's say I have only 10 users and 10 backend servers. My goal is to stick each user to his own server based on custom http header user_id. It means, that user's requests with header user_id=1…
jahra
  • 141
  • 5
0
votes
1 answer

haproxy url_dec does not work with url_reg

I would like to use haproxy (1.7.5-2 2017/05/17, debian stretch stock) as a first line of defense against some possible attacks (e.g. SQL injection). The idea is that I create an acl in the frontend that detects unwanted patterns using regexps and…
P.Péter
  • 569
  • 2
  • 6
  • 24
0
votes
1 answer

Haproxy two processes are created by systemd

I have just compiled the latest Haproxy. [root@proxy system]# haproxy -v HA-Proxy version 1.8.8 2018/04/19 Copyright 2000-2018 Willy Tarreau My service file looks as follows [Unit] Description=HAProxy Load…
cyeostoragrn
  • 19
  • 4
  • 11
0
votes
1 answer

503 ALB health check HAProxy

I have a HAProxy behind Amazon ALB (Application Load Balancer) http/80 health check is ok, but https/443 gives me 503, even though the site is available & ok Here's what I see in HAProxy log: 4/26/2018 3:19:47 AMApr 26 00:19:47 localhost…
0
votes
0 answers

HaProxy to Tomcat over SSL

I am trying to configure HaProxy - Tomcat communication over HTTPS. That is, I need to configure SSL on both HaProxy and Tomcat. I started with Tomcat and it works fine on port 8443. I imported the client certificate on the browser and it loads…
0
votes
1 answer

Multiple domains and SSL

It appears I've been way to focused on getting the Mulit Master replicating database system running and did not look much into the web server cluster and load balancer for it and SSL certifications.. Planned setup: Digital Ocean Floating IP: The…
StianM
  • 75
  • 1
  • 8
0
votes
1 answer

Use reqrep to change the path and then choose a backend based on that path

I have a need to transform the following url (not on the client/browser, but rather between the frontend and backend): from: http://myhost.com/opt-in/.html to: http://myhost.com/api/distributions//opt-in And then at…
ThaDon
  • 497
  • 1
  • 5
  • 15
0
votes
1 answer

Block website scraper in Haproxy

I am using Haproxy. I want to block scrapers from my website. In the haproxy.cfg , I have created a rule. acl blockedagent hdr_sub(user-agent) -i -f /etc/haproxy/badbots.lst http-request deny if blockedagent The file /etc/haproxy/badbots.lst…
Cyberzinga
  • 35
  • 2
  • 6
0
votes
0 answers

How to preserve cookie in HAProxy?

We currently have a the following setup: [Client] -> [haproxy] -> [Nginx] -> [App Servers] Nginx currently sets the cookie affinity to the app servers by setting a cookie i.e: public-client. However with the introduction of HAProxy the cookie is not…
kaizenCoder
  • 343
  • 2
  • 8
  • 22
0
votes
1 answer

Ubuntu: Automatically stop/start/restart dependent services

I have a small cluster of 2 x Apache/PHP servers running HAProxy, connecting to 2 x MySQL clustered servers. Sites are served from both Apache servers and DNS RR is relied upon for failover and crude load balancing. Diagram: Apache/PHP -- HAProxy --…
0
votes
1 answer

HAProxy - Assigning higher priority for certain URLs

We have a web service, which services both sets of higher priority and lower priority URLs and HAProxy is used for routing these requests to the web service. Using a separate backend for these higher priority URLs and reserving servers only for this…
0
votes
1 answer

haproxy http frontend , backend

I need to use haproxy for listening to port 80 and forward the request if it matches the role for that I did this this but I don't know how I can tell to use the prober back end frontend httpfw bind *:80 mode http acl # what I must write here to…
0
votes
1 answer

haproxy with nginx for webserver hosting

I have a nginx server which is serving different webservers on port 80 and 443 which works fine if i hit directly. abc.com, zyx.com client ---->abc.com,zyx.com (on nginx) Now i am trying to do the same via haproxy but unable to do so. client…
0
votes
1 answer

pacemaker create resource systemd & haproxy

My environment: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) # # rpm -q pacemaker pacemaker-1.1.16-12.el7_4.7.x86_64 # I'm trying to create systemd resource, however Pacemaker isn't even showing haproxy in the…
alexus
  • 13,112
  • 32
  • 117
  • 174