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

How to force HAProxy load balancer to redirect specific URLs always to the same server?

My domain is using HAProxy as a load balancer, there are 3 servers balanced, but I want to execute some particular urls always on the same server. Is this possible? or maybe this is an XY problem and there is a better solution: In some urls I'm…
Enrique
  • 143
  • 1
  • 5
0
votes
2 answers

Temporary Failure in name resolution. Ubuntu 18.04

I am working on some new vps for an application we use. Which are running on Ubuntu 18.04.2 behind a seperate haproxy vps which load balances between two front ends running the same code and app. The app uses the google directions api to get…
Alex M
  • 21
  • 1
  • 5
0
votes
1 answer

haproxy 1.7 redirect and rejecting some IPs

To redirect several subdomains on the same IP to different hosts, I'm using haproxy (1.7.5, Debian stable) and it works fine. However I also want to restrict access to some hosts by IP and display a clean message (proper 403 error page) to rejected…
wazoox
  • 6,918
  • 4
  • 31
  • 63
0
votes
1 answer

HAProxy as a reverse proxy for backend already ssl enabled and SSL terminator for a backend exposed in port 80

I have 4 servers: proxy_server, $BK_SERVER_001, $BK_SERVER_002 and $BK_SERVER_003 The "proxy_server" only has an HAProxy enabled service with this configuration: (please look at the rows marked as OPTION 1 & OPTION 2) # StackOverflow global …
0
votes
0 answers

Proxy to different web servers that use relative URLs

I have multiple web services running on the same machine on different ports, and I would like to use HAproxy to connect to them through different URLs For example, localhost/app1 should go to localhost:1234, and localhost/app2 should go to…
Kevin P
  • 1
  • 1
0
votes
0 answers

How should I load balance large port range for high availablity?

I have a service which publishes individual services on different ports via consul and fabio. I have a pair of these fabio internal load balancers. They both have the complete set of valid open rules. This will be some subset of 1024-49151. …
0
votes
3 answers

Can't Increment Stick Table Counter in HAProxy

Excerpt from cfg Backend1 mode http acl is-error res.hdr(status) 403 http-request track-sc2 src table error-count http-response sc-inc-gpc0(2) if is-error option httpchk balance static-rr server serverA [serverip-here]…
user450409
  • 125
  • 4
  • 16
0
votes
2 answers

Generic SNI-based transparent TLS proxy without having to enumerate all backends?

I'm in a situation where I have to provide a transparent reverse proxy in front of a set of thousands of backend https webservers, with the list changing (relatively) frequently. I know I can tell haproxy to select a backend to connect to based on…
András Korn
  • 651
  • 5
  • 15
0
votes
0 answers

Proxy requests to nginx from haproxy

I have haproxy in front of nginx, which simply serves static content. Direct access via nginx works perfectly fine - e.g., https://my-nginx-domain.com/some-sub-dir/image.jpg. Here's the nginx configuration: server { listen 443 ssl; …
bulkmoustache
  • 137
  • 2
  • 5
0
votes
1 answer

haproxy for k8s api server returns PR_END_OF_FILE_ERROR

I'm setting up haproxy for k8s api servers. The configuration for haproxy is: frontend k8s-https log /dev/log local0 debug option tcplog bind 0.0.0.0:8443 mode tcp default_backend k8s-https backend k8s-https mode tcp …
cgcgbcbc
  • 529
  • 1
  • 4
  • 9
0
votes
1 answer

CLIENT IP - PROXY forward packet - SERVER receiving real client IP on port 123

As I explain in the title.. I am trying to use a VPS that connects to my real secret server IP, this can be done easy with iptables but I lose the client IP and this is big problem, I would like to be able to forward the client IP to the server. Any…
0
votes
0 answers

HAProxy resolver doesn't work : could not resolve address

I'm on Ubuntu 16.04; I set up HAProxy as an entrypoint to services defined by domain names; those domain names are served by a DNS server (coredns) in the same machine (or VLAN network). Using nslookup or dig utilities, we obtain the name…
0
votes
2 answers

Configure haproxy to only disable affected services, while keeping it easy to take down entire box quickly

We are using haproxy for loadbalancing across several machines. Our application includes a number of services, each deployed as an independent war in tomcat, that can be requested. Currently I have a single backend that get's loadbalanced to,…
dsollen
  • 103
  • 1
  • 5
0
votes
1 answer

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 private IP address. Here is URL settings for my…
0
votes
0 answers

Can't connect to MySQL cluster from HAProxy + keepalived cluster

I'm new to clustering. I'm trying to configure keepalived in HA with HAProxy and MySQL cluster (+2 NDB cluster node). Configuration with 1 HAProxy (without keepalived and virtual ip address) seems to work properly (I can connect from client MySQL to…