HAProxy is a 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.

learn more… | top users | synonyms

1
vote
0answers
105 views

AWS ELB with SSL backend adds proxy protocol inside SSL stream

Note, this has been also posted in http://thread.gmane.org/gmane.comp.web.haproxy/27737 we are trying to configure this architecture: ELB terminating SSL, using preconfigured certificates. (this ...
1
vote
2answers
30 views

I erased haproxy.log with old content but this file hasn't appeared again

I have a load balancer with HAProxy in Ubuntu 14.04. I did all configurations for turn on log and it works well. However, I erased haproxy.log file and that hasn't appeared again. Can someone help me? ...
0
votes
1answer
23 views

Use haproxy to redirect *.domain1.com/* to *.domain2.com/*

I am struggling with some HAproxy rules for a while with no luck unfortunately. Let's say I have domain1.com and domain2.com. I want to redirect everything from domain1.com to domain2.com, including ...
0
votes
1answer
114 views

Is it possible to do direct server return DSR load balancing using virtual servers in the cloud?

Is it possible to do this kind of load balancing in the cloud say for example in Digital Ocean if all of my droplets are from the same data center? Or do I need some sort of physical device to do this ...
1
vote
1answer
37 views

How can I TCP (layer 4) load balance with haproxy and still do roundrobin or leastconn balancing?

I am trying to load balance with haproxy on VirtualBox just to see that things work as they should before I go on to set it up on Digital Ocean. I am able to decide how to balance requests when I ...
2
votes
2answers
326 views

Using Lets Encrypt SSL for multiple Apache servers with distributed traffic

I'm having some issues setting up Let's Encrypt for a couple websites that are setup on two different servers, and have the traffic distributed to them via HAProxy. The servers have a number VHosts/...
0
votes
0answers
62 views

Adding CSRF token in to Cookies of Post request in Haproxy

My post request to UAA is missing CSRF value i.e. X-Uaa-Csrf=2QytIy. This is required for login in to cloud foundry UAA. This is problem is because of internet domain name /private domain name mapping ...
0
votes
0answers
50 views

Redis & HAProxy - updated configuration settings?

Have gotten 2 Redis instances installed, with one being a master. That is working remarkably well and with no headaches. I'm now trying to get my HAProxy/keepalived nodes to handle some sort of ...
0
votes
1answer
59 views

HAProxy cannot bind socket on nodejs webserver

i'm trying to use HAProxy to redirect on different nodejs webserver working on three different port. What i want is that when i try to open /node1 HAProxy redirect me to that web server. This is ...
0
votes
0answers
46 views

TCP Balancer active/standby active/passive

I have two Servers, Server A,ServerB. running as TCP socket server. I want to a active/standby or /active/passive failover. that means: 1:Server A and Server B Running, route ALL connection to ...
2
votes
1answer
107 views

HAProxy dynamic server address based off of header value

Hello I'm attempting to route traffic back to a users machine in order to run a site locally but picking up the headers/cookies/routing logic for other origins that HAProxy supplies. Thus far though I ...
2
votes
1answer
27 views

How to drop varnishncsa log if req.url matches

I've got a few load balancers that all perform health checks on a number of varnish instances. The health check on the varnish side consists of matching the request method and URL to return a 200 ...
1
vote
1answer
29 views

Making HAProxy Pass a Host Name in HTTPCHECK

I am trying to perform HTTP Checks in HAProxy with a specific host name. Here is a snippet from my backend configuration: option httpchk HEAD / HTTP/1.1\r\nHost: example.com http-check expect ...
2
votes
0answers
35 views

HAProxy frontend backend continuously starting and stopping

I am using an HAProxy 1.6.4 to load balance my traffic into different servers. As in now my haproxy runs inside a docker container. In my configuration i have different frontends and backends. As in ...
0
votes
1answer
21 views

How to put a HAProxy node to maintenance via configuration file?

Is there a way to configure HAProxy to add a node to the configuration but keep this particular node in maintenance? Just like with the web interface? Reason behind is, that I have the same setup as ...
1
vote
1answer
36 views

apache LimitRequestBody equivalent for haproxy

recently we migrate our http load balancers from apache to haproxy (http mode) for security reasons we use LimitRequestBody in apache configurations to control requests size is there any equivalent ...
0
votes
0answers
27 views

Best (light-weight) web-proxying software to use for my particular setup?

(Sorry for the dashes in my URLs for examples; I do not have enough "reputation points" to post multiple link, even though they're fake links). I have a back-end server running Apache at 1.2.3.4 that ...
0
votes
1answer
79 views

OpenShift Free Tier: 503 Service Unavailable

I've been working on my Ghost theme for the last few hours, and suddenly this error. Attached is a copy of my HAProxy status output. I've restarted both NodeJS and HAProxy. Neither restart fixed ...
0
votes
1answer
62 views

HAProxy ACL multiple OR conditions

Using Haproxy 1.5.12 running on Ubuntu 12.04 I need to restrict access to my website to requests either coming from certain IPs or having a defined parameter in the request. So for example the ...
0
votes
0answers
21 views

haproxy, iptables & iproute2 as a mean to select a different src vIP for same default GW

Got a HAproxy 2 node cluster/setup, each node has an external and internal NIC. External has a default gw: .249 service service pool A pool B srv1..srvN srv1..srvM ...
0
votes
0answers
13 views

haproxy 500+ connections to its own stats port

I have the following at the end of my haproxy.cfg: listen ec-prod-lb-1 *:8080 stats uri /stats stats realm Haproxy\ Statistics stats show-legends stats refresh 5s ...
1
vote
0answers
33 views

haproxy process not releasing memory

After a reload, old haproxy process remains there and doesn't release memory (sometime it does but behaviour is not consistent). After killing the old process (several days old) the memory get ...
0
votes
1answer
71 views

HAProxy basic auth except from specific IP

I have set up basic authentication for my backend, like this: backend webservers acl is_auth_ok http_auth(SiteUsers) http-request auth realm MySite if !is_auth_ok This works but now I want ...
2
votes
0answers
41 views

HAProxy: replacing subdomains with paths

My previous question was too complicated and unclear. Hopefully this is more straight to the point... Currently I'm using subdomains to access application UIs externally. Some allow access via paths: ...
1
vote
1answer
145 views

Haproxy 301 URL redirect on query string condition

Using Haproxy 1.5.12 running on Ubuntu 12.04 My website gets a lot of requests like this one: http://www.example.com/foo/bar/mypage.php?gallery=&position=3 the correct URL should be: http://...
1
vote
2answers
37 views

Using a load balancer in front of many sites

Is there any reason not to use a software load balancer / proxy in front of many small websites for admin purposes. I work for a web design agency where we have maybe 30-40 small to medium websites ...
0
votes
1answer
57 views

Haproxy rules(set-header) not working and it's not changing base url of request

I am trying to integrate cloud foundry adminui application. Url which I access is https://myexample.com/adminui/ It works as follows: Request https://myexample.com/adminui/ Response ...
0
votes
1answer
53 views

keepalived doesn't assign the virtual IP

I am testing haproxy with keepalive to 3 servers. Haproxy server configurations work fine (USLTS4/USLTS5), but not keepalived. The process started on both haproxy's, but the VIP is not assigned to ...
0
votes
1answer
108 views

HAProxy 1.6 SSL connections reseting

I have been beating my head against this HAProxy issue for entirely to long, and I am hoping someone here has seen this before. Here is some information: Our HAP instances are in AWS across three ...
0
votes
1answer
33 views

Haproxy option forwardfor works only on first request

Why does haproxy send the X-Forwarded-For header only the first time ? This is the (only) place I have set option forwardfor: backend nodes mode http balance roundrobin option forwardfor ...
2
votes
1answer
95 views

Haproxy Log Custom Format For GoAccess

I want to use GoAccess with Haproxy which works as reverse proxy and load balancer. My goal is to create a custom log format which will be looking exactly like apache2 (compatible with default ...
0
votes
2answers
226 views

HAProxy: use_backend ignored because backend has no frontend capability

I have an HAProxy config file that's being built programmatically and I'm getting an error like the following for every single backend that's defined: [WARNING] 073/153725 (1663) : parsing [/etc/...
0
votes
1answer
221 views

Adding subdomains in haproxy for CORS

I want to do the equivalent of this in haproxy to allow CORS for any server in my domain. By default CORS only does null, star or a single URL. Is that possible? SetEnvIf Origin "^(.*\.bebop\.co)...
1
vote
1answer
53 views

HaProxy suddenly crashing on new Ubuntu Images (same config works elsewhere)

I have been using HAProxy for about two years with the same working configuration. I've installed HaProxy multiple times over the last week on Ubuntu 14.04, 15.10 and I am getting out of Memory ...
0
votes
2answers
51 views

Haproxy failing to start after VM move (Debian 8 [systemd])

We are running HAProxy 1.6.1 on Debian 8 virtual machines. I was moving our 2 instances to a different size VM, however, when I rebooted they did not come back up. I can't even run the haproxy ...
0
votes
0answers
49 views

HAProxy by Subdomain and HAProxy by Subdomain + URI

I've found several posts on this site and other stack sites and among others and Binging and Googling, however, none of them really seem to work for me. Little bit about what I do: I build websites. ...
0
votes
1answer
94 views

HAProxy config file error using req.cook

I'm following this tutorial (more or less) in an attempt to use haproxy for a quick-and-easy A/B testing setup, and haproxy doesn't like my config file for some reason that I just can't identify. ...
2
votes
1answer
102 views

HAProxy: Detect SSL connection contents and then decide to forward it or not

I would like to have a front end with HAProxy on port 443. This front end acts in the following way: It decrypts the contents of the connection and checks: 1- If the encrypted contents of the ...
2
votes
3answers
126 views

How to make HAProxy wait for successful health check before bringing server out of maintenance mode

I am using HAProxy socket communication to put my backend into maintenance mode before bringing the web server down for maintenance via this command: echo "disable server cluster-01/app-01-4" | sudo ...
3
votes
0answers
323 views

Using haproxy in tcp mode to proxy mongo server causes mongo clients to fail about 25% of the time

I am trying to use haproxy in tcp mode in front of a mongo server. On the haproxy machine I have a mongo client to test with. When connecting from the haproxy machine directly to the mongo server ...
1
vote
1answer
106 views

haproxy - Route Request and keep same base URL

I'm new to haproxy and I'm struggling a little bit trying to configure it. What I want: Type in the browser: proxy.company.com/Test/App Have haproxy balance the request between webapp01.company....
0
votes
2answers
33 views

how to scale HAProxy based on the maxconn

Is there a way to monitor/get the value of the current maxconn and based on that value add more instances ? Currently I have a setup of 3 HAProxy with maxconn 1000 I have recached the limit at a ...
3
votes
1answer
106 views

Prevent HAProxy from redirecting HTTP to HTTPS

I'm using HAproxy to load balance requests between Apache servers. I'm trying to disable HTTPS for a special use case (serving of kickstart files), and I'm using port 8000 to do this. I have an ...
2
votes
1answer
57 views

ngx_http_auth_request_module equivance for HAProxy

Does an equivalent module to nginx's ngx_http_auth_request_module exist for HAProxy or Apache? This module allows support for custom authentication through HTTP. I quote: The ...
0
votes
0answers
71 views

HAProxy configuration problems (with source directive)

I have HAProxy setup to listen on a public IPv4 address (1.2.3.4), it is supposed to proxy all requests to my b_http backend. The back-end has a source line that makes it connect to the server/site ...
2
votes
0answers
69 views

Is it possible to configure HAProxy to listen on IPV4, but send the request using IPV6? [closed]

Trying to configure HAProxy to listen for requests on port ipv4(Port 80) but proxy the request through eth1 to a server using ipv6. The request must be show the ipv6 address for the request. We don't ...
0
votes
2answers
114 views

Haproxy introduced latency

I run an online multiplayer game with about 50K simultaneous players at peak time. The game has a custom client-server protocol (deflate-compressed json blobs with some header info) that can be both ...
1
vote
1answer
30 views

Haproxy redirect to different subdomain

I am trying to redirect one url example.com/blog to blog.example.com using haproxy. I have applied following rule: acl blog_path path_beg -i /blog/ redirect location http://blog.example.com/ code ...
0
votes
0answers
142 views

HAProxy redirect all HTTP URL to the same HTTP URL

I would like to know if there is a catch all solution to just redirect any Incoming HTTP traffic from source URL to the same Destination URL via the same protocol HTTP. Same with HTTPS -> HTTPS, i.e. ...
1
vote
1answer
51 views

How to configure HAProxy on Amazon Linux AMI with SSL/TLS Passthrough

I'm trying to configure an Amazon Linux AMI instance that has an Elastic IP to act as Proxy to a standalone backend server. I'm trying to do HTTPS TCP Passthrough only but I can't get it to work! ANY ...