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

Simplest way to setup a failover web server

So I have a simple web app (LAMP) , minus (MySQL) , that stores user generated data into files (think photos, audio etc). I want to setup a failover webserver what's the easiest way to do this? Thinking about using a cron to just rsync data files…
0
votes
1 answer

HAproxy http to https redirect won't work with Internet Explorer

I have a problem with HAproxy, it won't redirect HTTP to HTTPS if using Internet Explorer. It just tells me that this webpage doesn't exist if I'm trying to connect over http. My configuration (real website name is changed): acl…
0
votes
1 answer

SSH into multiple servers based on Domain HOST ACL

What I’m trying to achieve here is using 1 Entry point for all of my servers using a private network. 1 server with Public IP access and then pointed multiple domains on it, after that use ACL to decide which backend to use. Example…
0
votes
0 answers

HAProxy using URL parameters for selecting a server

We have a mobile game client running on websocket connections and we want to use HAProxy as a load balancer. There are two main conditions: Set sticky session based on url parameter ID (varying string between 32 to 64 chars) and then select server…
0
votes
1 answer

How many ports HAProxy machine opens

I have below port range configured cat /proc/sys/net/ipv4/ip_local_port_range 32768 61000 So, 28232 will be no.of available ports I have HAProxy Configured to take 5000 connection with 2 processor So, HAProxy will take 10,000 concurrent…
0
votes
1 answer

Read-only etherpad

Is there any way to make an etherpad site read-only? I know I can disable new pads creation in the settings.json file ("editOnly" : true), but this doesn't seem to limit users from altering existing contents. I just want to decommission the site…
David Ramirez
  • 407
  • 2
  • 4
  • 19
0
votes
2 answers

Rate limiting HAProxy connections from clients behind another proxy or NAT

We have HAProxy running on our pfSense hardware, forwarding a single frontend to a number of backend services (using cookies). Everything is working great. We'd like to add basic "rate limiting" to HAProxy. In the Frontend configuration, I've…
KenD
  • 1,147
  • 2
  • 17
  • 37
0
votes
0 answers

elastic search behind haproxy

There are 4 elastic search nodes in a cluster and these 4 nodes are setup behind haproxy. Each of the node in the cluster is receiving around 900 to 1000 tcp connections, but one of the node has very less around 400 connections. Following is the…
0
votes
1 answer

Opening ports in SELinux: How to give a daemon permission to listen on predefined port type?

This is a fairly generic SELinux question, but with a specific example. I'm still fairly new to SELinux, so am regularly fighting with it! I'd like to know if I can set up a daemon (in this case haproxy) to listen on more ports than its default…
Alex Leach
  • 1,697
  • 3
  • 16
  • 18
0
votes
1 answer

HAproxy Configuration - Wordpress + phpMyAdmin + mariadb in Docker

N00b here, I'm trying to create a configuration file for HAproxy, but I'm having some understanding problems about this topic. So, for this example I want to be able to load wordpress when I'm accessing http://VMip and when I use…
Adrian S
  • 1
  • 2
0
votes
1 answer

haproxy ssl termination works on http BUT fails on https with 503 - on Virtualbox apache2 ubuntu 18.04 backend server

I've just dived into haproxy, and my goal is to setup an ssl terminated loadbalancer with one frontend ubuntu, and (for now) one backend lamp (ubuntu). Both the frontend and backend machines are 18.04 ubuntu's on my virtualbox. I am on Windows 10,…
0
votes
1 answer

unable to map multiple applications using haproxy?

So basically I have 2 different applications running on port 5000 and 30000 on a single ubuntu server respectively.Both these application has to be mapped using haproxy. what i have tried so far- frontend http-in mode http bind *:80 …
0
votes
1 answer

Unable to achieve http to https redirection when using mutliple backends in haproxy?

So basically I have 2 different applications running on port 5000 and 30000 on a single ubuntu server respectively.Both these application has to be mapped using haproxy.I am using acl path_beg to use a made up pathname(alias) to access these…
0
votes
1 answer

haproxy redirection not working using pathname?

I know i have asked this before but i dint get any answers for the question.So basically i have a node js app running on port 5000.I have successfully redirected this to port 8080 using the following haproxy configuration- frontend http-in mode …
0
votes
0 answers

how to dynamicalle change the acl in haproxy?

haproxy.cfg frontend http-in mode http bind 206.189.22.155:80 acl path-page-designer path_beg -i $PATH use_backend page-designer-backend if path-page-designer backend page-designer-backend mode http …