3
votes
2answers
465 views

When a server IP changes, do exising TCP (e.g. http/mysql) connections remain running

We have some PHP-FPM servers and when they need a database connection, they connect to an HAProxy server which selects them a database server to use and the connection opens. When we then want to ...
0
votes
2answers
79 views

Take HAProxy backend nginx server out of rotation if it can't connect to Unicorn

I have a load balancer running HAProxy with two backend servers both running Nginx on to Unicorn. If nginx goes down on one of these boxes HAProxy takes it out of the set and the service continues to ...
-1
votes
2answers
214 views

Where will load fall using Nginx, Varnish, and HAProxy? [duplicate]

We are looking into scaling our servers and I am not sure where load will fall as visitor count increases. I have one HAProzy load balancer, that proxies to two Varnish Nginx static content servers. ...
0
votes
2answers
64 views

how to recover from a failed web server or reverse proxy

I have the following setup in my datacenter. Global LB --> HA proxy (2 instances on different servers via VRRP, performs HTTPS termination, acts as reverse proxy) ---> Nginx(2 instances on different ...
3
votes
1answer
589 views

Reverse proxy for mixed tcp, udp, and http services

I'm building an architecture that will be hosting various services which individually maybe listening on a variable number of ports that could be mixed protocols. I want to map these services to ...
1
vote
1answer
431 views

Server Performance (HAProxy, Nginx, SSL)

I've been struggling recently with try to identify where the performance on our environment is bottlenecking. Environment (each server is Linux VM, 8 Cores, 32 GB RAM): Load Balance: 50 Web Servers ...
0
votes
1answer
103 views

Setting Up a Load Balancer on VPS with Replication

I'm looking for some expert advice on how to go about setting up a load balancer across a VPS, configuring two other VPS for PHP/MySQL replication and then linking them together. I've looked into ...
-1
votes
1answer
75 views

Best way to map wild card subdomains to unique ports?

This is a best practices question. I'm working on starting a site that will have user generated subdomains that host user content. Think tumbler or stackexchange. subdomains like *.mysite.com where ...
1
vote
0answers
202 views

Issues with nginx behind haproxy

I'm hosting an ajax site (AngularJS) and it's assets/partials reside on my static asset servers running nginx behind haproxy. My setup looks as follows: Web -> Haproxy -> App (custom) and ...
0
votes
1answer
98 views

Load balance by header prefix

I need to balance an OAuth application. By using the Authorization header, I can redirect the same client to the same machine - however - I want to redirect each user to the same machine, regardless ...
1
vote
1answer
257 views

Logging client ip address from tcp connection from HAproxy to nginx

If internet traffic comes through an HAproxy load balancer on SSL and that is passed to an nginx web server, how can I log the clients ip address? I'm aware of methods like this: How can I use ...
0
votes
1answer
216 views

HAProxy and streaming server bottleneck concern

I am investigating into HAProxy to use as a load balancer for a number of nginx servers. Each server is streaming a static file (audio file) from it. Nginx will be using a symfony2 framework. In ...
0
votes
1answer
80 views

Loadbalancing download server with nginx + haproxy

I need some info. I have been looking for this solution all over the google, but could not find it. I am trying to setup HAProxy to balance the downloaders in one server not send them to other servers ...
1
vote
0answers
131 views

How to block trafic from anonymous proxy to my site?

some scammers are trying to reach my site using anonymous proxy. Is there a way to block connexions from anonymous proxy with haproxy or nginx? Thanks
0
votes
1answer
97 views

Rewrite x-forwarded-for

Client - LB - App Server I have an app that supports http or https. If the original request is https, but the server is expecting http, it won't work. Is it possible to use nginx to rewrite the ...
0
votes
0answers
224 views

Nginx behind aws elb return error 403

I'm getting crazy with AWS ELB and my instances. My infrastructure is made by: --> NGINX --> node.js | Apache Users --> ELB < --> NGINX --> node.js ...
0
votes
1answer
343 views

How to use limit_conn and limit_req modules of Nginx when it is behind HAProxy

I'm using limit_conn_zone (with limit_conn) and limit_req_zone (with limit_req) in Nginx which sits behind a HAProxy. They both run on the same host. I see whenever a limit is breached in Nginx ...
2
votes
1answer
765 views

SSL Termination with HAProxy and Nginx on Ubuntu

I've been following this tutorial: http://www.exratione.com/2012/12/websockets-over-ssl-haproxy-nodejs-nginx/ ...but I've been having problems connecting to Nginx through HAProxy via SSL. I'm ...
1
vote
1answer
74 views

Proxy HTTP requests to several machines

I have one service called legacy-service another service called dev-service bunch of HTTP requests coming to the legacy-service Is there any way to proxy HTTP requests to both legacy-service and ...
0
votes
1answer
381 views

Do AWS ELB, HAProxy or nginx drop the connection if a backend servers is down?

I wonder which ones of the following load balancers is able to detect an unavailable backend machine, and redirect the connection to another server without dropping the request: nginx AWS Elastic ...
0
votes
1answer
76 views

access_log off for a 301 or a 302

I am using haproxy and nginx. Haproxy has sthis option to check health of my backends: option httpchk HEAD /lol.txt HTTP/1.0 All works fine, but I do not want to log this health check So in my ...
0
votes
2answers
83 views

Nginx location and rewrite

I'm dealing with the following issue and I can't figure out to resolve it. I have HAproxy in front of app server farm which are running nginx. HAproxy has some httpchecks enabled for backend services ...
2
votes
1answer
1k views

HAProxy Redirects and matching based off URI

I am attempting to setup a testing haproxy server that will cover 2 basic areas. Auto redirect to https if the user is using http but only if a specific uri part is not present. For example, if a ...
0
votes
1answer
173 views

set _SERVER[“HTTPS”] to yes with stunnel Haproxy Nginx

I am trying to set the _SERVER["HTTPS"] php variable to yes on my web servers. Actually, https trafic come to stunnel which forward it to haproxy which forward it to my web servers running under ...
0
votes
2answers
304 views

Nginx changing redirecting to the wrong port when I access it through a load balancer

Edit - I changed the question as I was wrong about where the error was coming from I'm having some issues with my Openam deployment and was wondering if you can help. My set up is as follows: 2 ...
2
votes
3answers
1k views

Use HAProxy or Nginx to Load Balance between VPS

I want to load balance + failover backup multiple vps webservers hosted on different providers. I heard that for HAProxy you need multiple server under the same subnet, plus a shared (virtual) ip ...
2
votes
1answer
56 views

serving a blog at domain.com/blog when dns for domain.com is pointing elsewhere

there is a blog hosted on one machine (apache) (currently at blog.domain.com) and we'd like to move it to domain.com/blog. dns for domain.com is pointed at an haproxy machine load balancing a few ...
2
votes
1answer
752 views

Nginx + Haproxy + Thin + Rails - 503 Service Unavailable -

I don't know how troubleshoot this. I get "503 Service Unavailable" http error for all "nginx upstreams" proxy passing calls to haproxy fast_thin and slow_thin ( server 127.0.0.1:3100 and server ...
0
votes
1answer
341 views

Varnish/HaProxy/Nginx [duplicate]

Possible Duplicate: Ordering: 1. nginx 2. varnish 3. haproxy 4. webserver? Could you tell me if a configuration as below looks ok to serve pages delivered from my web servers. Is there some ...
1
vote
2answers
2k views

Haproxy not properly passing on X-Forwarded-For header

I have backend web servers that receive requests by way of haproxy->nginx->fastcgi. The web app used to see multiple ip's coming through in the X-Forwarded-For header, chained together with commas ...
3
votes
1answer
483 views

Using Varnish as load balancer

Varnish already support load balancing HTTP 1.1 and Web Socket requests, e.g. https://www.varnish-cache.org/trac/wiki/LoadBalancing Since we already using Varnish for caching purpose, are there any ...
1
vote
1answer
170 views

Failover at the DNS Level (2 LB and 2 Static IP)

I'm building 2 boxes, each will be Static Content Server (NginX) + Load-Balancer (HAproxy) + DNS Server (NSD). The TTL on each DNS server for (A) records will be something like 30-60 seconds. ...
1
vote
1answer
945 views

GeoIP and Nginx

I have a nginx with geoip, but it is not working rightly. The issue is the next: Nginx are getting geodata from $_SERVER['REMOTE_ADDR'] instead of $_SERVER['HTTP_X_HAPROXY_IP'], which have the real ...
1
vote
2answers
545 views

haproxy + nginx: https trailing slashes redirected to http

I have a setup where HTTP(S) traffic goes from HAProxy to nginx. HAProxy nginx HTTP -----> :80 ----> :9080 HTTPS ----> :443 ----> :9443 I'm having troubles with implicit ...
0
votes
1answer
1k views

HAProxy “503 Service Unavailable” for webserver running on a KVM virtual machine

I'm setting up a server with KVM (IP 192.168.0.100) and I have created inside of it one virtual machine using network bridging at 192.168.0.194. This virtual machine has an nginx instance running, ...
1
vote
1answer
838 views

Issue with SSL using HAProxy and Nginx

I'm building a highly available site using a multiple HAProxy load balancers, Nginx web serves, and MySQL servers. The site needs to be able to survive load balancer or web servers nodes going offline ...
1
vote
1answer
355 views

Compare HTTP load balacing using HAProxy & Nginx

My requirements: Weighted RR load balancing NO need sticky session support NO need SSL NO need HTTP 1.1 to backend So effectively I just need very simple HTTP load balacing!! My Boss asked to try ...
11
votes
2answers
5k views

Do HTTP reverse proxies typically enable HTTP Keep-Alive on the client side of the proxied connection and not on the server side?

HAProxy has the ability to enable HTTP keep-alive on the client side (client <-> HAProxy) but disable it on the server side (HAProxy <-> server). Some of our clients connect to our web service ...
1
vote
1answer
363 views

Nginx: Do not redirect without trailing /

I have a problem where Nginx redirects me to the wrong url if there is no trailing / provided. I have haproxy setup to delegate the requests between multiple servers. curl output: ➜ ~ curl -i ...
0
votes
1answer
103 views

What is the best tool for proxying a single incoming IP address to multiple different backend services?

We have a lot of IP addresses so up to this point we have exposed every external service on its own IP, but it is a pain to manage all of these at the firewall level. What is the best tool to expose ...
1
vote
1answer
2k views

Forward real IP through Haproxy => Nginx => Unicorn

How do I forward the real visitors ip adress to Unicorn? The current setup is: Haproxy => Nginx => Unicorn How can I forward the real IP address from Haproxy, to Nginx, to Unicorn? Currently ...
4
votes
2answers
625 views

Load balancing without a load balancer?

I have 4 nginx-powered image servers on their own subdomains which users would access at random. I decided to put them all behind a HAProxy load balancer to improve the reliability and to see the ...
1
vote
1answer
248 views

Programatically blocking a url to rate limit, unblocking or expiring the block

My requirements are to be able to rate limit or temporarily hard block any requests to our server for a particular URL if the client sends more than x requests per hour. There are about 250K urls ...
2
votes
2answers
732 views

HAProxy + nginx reaching max numtcpsock in about 24 hours

I'm running a relatively simple VPS (a Media Temple (ve)) with a few PHP-based websites and (eventually) a few Node servers. In order to enable WebSockets support, I'm using HAProxy on port 80, which ...
2
votes
1answer
416 views

Load balance HTTP based on a percentage of traffic or requests?

I want to have v1 of my application in one pool and version v1.1 in another pool and then slowly ramp up the traffic going to pool two and reduce it to pool one. Can anyone show some concrete ...
1
vote
1answer
121 views

Load balancing setup

Server 1(Proxy) -> Server2/Server3(Apache) -> Server4(mySQL) For server 1 I would setup HARproxy with something like? global log 127.0.0.1 local0 log 127.0.0.1 local1 notice ...
0
votes
3answers
737 views

HAProxy NGInx SSL setup

I've been looking around different setups for a server cluster supporting SSL and I would like to benchmark my idea with you. Requirements: All servers in the cluster should be under the same full ...
2
votes
1answer
216 views

Redirect away from www to non-www domain on nginx from behind HAproxy

I'm a bit confused. I have nginx running on a port other than 80. # part of nginx.conf server { listen 7000; include /etc/nginx/my_app.conf; } That's because my HAProxy is running on 80 on the ...
1
vote
1answer
449 views

Nginx + SSL + Rails + Juggernaut (Node.js) + Engineyard

I have two different applications on the same server. One of them is running on the 80 port (mydomain.com), another on the port 443 (sub.mydomain.com) and has wildcard certificate. The first ...
1
vote
2answers
1k views

Nginx Retry of Requests ( Nginx - Haproxy Combination )

I wanted to ask about Nginx Retry of Requests. I have a Nginx running at the backend which then sends the requests to HaProxy which then passes it on the web server and the request is processed. I am ...