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
1
vote
0 answers

Make Haproxy translate from frontent-path to backend-root

I would like to access my nextcloud instance from the internet. It is reachable within my network via cloud.daninet.local, and i want to access it externally via mydomain.com/cloud. This is the config i have come up with so far: frontend hass …
Daniel
  • 11
  • 1
1
vote
1 answer

DNS and failure tolerance strategies for load balancers

I'm trying to educate myself about how to build a highly available load balancing service for application servers for e.g. HTTP traffic and how they work with DNS servers. Consider the following diagram. My understanding is that load balancers…
1
vote
1 answer

How does consistent hashing in haproxy work?

There was such a question. I would like to understand in theory how the consistent hash algorithm works in haproxy. To be more precise, what is hashed and how is it hashed? (what happens on the servers). Thank you!
Ivan
  • 11
  • 1
  • 2
1
vote
1 answer

HAProxy rewrite sticky session cookie on backend failure

I have HAProy load balancing two Tomcats and using sticky sessions. When server A goes down subsequent requests from the same session are served by B. But, if server A comes up again, additional requests from the same session are routed to A. What I…
Johnny
  • 113
  • 1
  • 5
1
vote
0 answers

HA Proxy sub domains https

I have a problem in HA Proxy wherein i have two urls for prod and non-prod: https://app.domain.com https://non-prod.app.domain.com My problem is that all succeeding requests to either domain is being passed to the backend of the first request. Like…
Nameless
  • 11
  • 2
1
vote
1 answer

HAProxy - CA Signed Certificate not trusted, despite being in trust store

Repost from Stack Overflow. Was suggested that I post here instead, as Stack Overflow is meant for programming, and this question is focused on SSL and HAProxy. I'm trying to complete the setup of SSL with HAProxy. To do so, I've made a CSR and…
SVill
  • 77
  • 3
  • 13
1
vote
1 answer

HAProxy logs are showing external IP addresses trying to access domains that are not hosted by my company

So I was browsing my HAProxy logs earlier today and noticed some odd requests being made by external IP addresses to domains that we are not hosting. For example Jun 8 06:25:56 haproxy haproxy[6316]: 185.108.107.19:54243 [08/Jun/2020:06:25:56.731]…
Richie086
  • 238
  • 2
  • 10
1
vote
1 answer

Redirect non-www to www with ssl on haproxy

What I want to achive are redirects: http://test.com --> https://www.test.com http://www.test.com/ -> https://www.test.com https://test.com --> https://www.test.com My current haproxy conf: global log 127.0.0.1 local0 notice maxconn 3000 …
Jurudocs
  • 339
  • 1
  • 3
  • 11
1
vote
0 answers

PFSense HAProxy DNS Rebind

I have installed PFSense and HAProxy Package behind Provider router with On Public IP, when trying to redirect all HTTP/HTTPS traffic to ip assigned to PFSense, I am getting HAProxy Front Ends getting invoked redirecting to https and then throwing…
Sirra Ali
  • 11
  • 1
1
vote
0 answers

Output haproxy backend's TCP client port in logs

Context: I have a HAProxy configured to proxy TCP traffic for websockets. So a TCP redirecting session looks like this: client app --> [(frontend) haproxy (backend)] --> server app From the server's perspective, the TCP client that establishes…
Absolom
  • 273
  • 2
  • 7
1
vote
1 answer

Issue with HAProxy and SSL/TLS handshake by webserver for different subdomains in same browser session

We have a firewall with a HAProxy (pfSense) and multiple webservers. Every webserver is configured with HTTPS. The HAProxy frontend rules are defined with Server Name Indication TLS extension matches and the webservers are defined as backends (all…
user1610
  • 11
  • 2
1
vote
2 answers

Haproxy log file with pfsense

I am trying to read the /var/log/haproxy.log file with the command: clog -f haproxy.log but nothing happens. No window opens. How do I see my error log? I’m on pfsense.
1
vote
1 answer

Traffic flow of Varnish, Hitch, and HAProxy

There are many questions and answers here about how to best order the flow of traffic between Varnish and HAProxy to a backend web server. Many of these posts are very old and recommend that Varnish be placed between HAProxy and the web server. …
Tuaris
  • 71
  • 2
  • 13
1
vote
0 answers

How to setup/make Haproxy send read-write request based on REST method

How to setup/make Haproxy send read-write request coming on same port 5432 from application, to backend servers of postgres-patroni cluster based on REST method. I have three node postgres-patroni cluster running as docker service/containers behind…
charlie
  • 31
  • 1
  • 2
1
vote
1 answer

haproxy: Can I annotate an IP whitelist file?

In my "/etc/haproxy/haproxy.cfg" file, I specify a whitelist file that contains IP addresses that are permitted to access a frontend. frontend default-frontend tcp-request connection reject if ! { src -f…
SunSparc
  • 998
  • 3
  • 11
  • 23