Is it possible to rewrite or redirect based on path

2014-06-25 Thread Jeffrey Scott Flesher Gmail
I have an acl rule to see if path begins with /ww as in domain.tdl/ww/en... acl has_ww_uri path_beg -i /ww If it is just the domain.tdl, I want to rewrite it to /ww ~ example.com/ww Do I do it like something like this: !has_ww_uri reqirep ^([^\ :]*)\ /(.*) \1\ /ww\2 But this does not work,

invalidate errorfile cache to trick upstream load balancer

2014-06-25 Thread Corey Osman
Hi, I am using a custom 200 response file so that my upstream load balancer can determine if my haproxy instance is operating correctly. errorfile 200 /home/haproxy/responses/200_resp.http Additionally I am using the monitor-uri /healthcheck. So when my upstream load balancer calls

Re: invalidate errorfile cache to trick upstream load balancer

2014-06-25 Thread Willy Tarreau
Hi Corey, On Wed, Jun 25, 2014 at 12:05:59AM -0700, Corey Osman wrote: Hi, I am using a custom 200 response file so that my upstream load balancer can determine if my haproxy instance is operating correctly. errorfile 200 /home/haproxy/responses/200_resp.http Additionally I am using

backend server marked up after restart/reload on 1.4.25

2014-06-25 Thread Corey Osman
HI, I have noticed that when I restart/reload haproxy, haproxymarks the servers in the backends as up without ever checking them. So traffic is being sent to the backend server even while the backend server is actually down. This occurs until the first health check fails on the server and

Re: backend server marked up after restart/reload on 1.4.25

2014-06-25 Thread Willy Tarreau
Hi Corey, On Wed, Jun 25, 2014 at 01:26:25AM -0700, Corey Osman wrote: HI, I have noticed that when I restart/reload haproxy, haproxymarks the servers in the backends as up without ever checking them. So traffic is being sent to the backend server even while the backend server is

Typo in stats interface

2014-06-25 Thread Marco Corte
Hi There is a very small typo in the statistics interface: a set in lowercase where allothers are uppercase Set I am sorry, but I do not know how to properly document the change I made... hope that is helps. .marcoc diff --git a/src/dumpstats.c b/src/dumpstats.c index 5365042..c8bac08

VPrivées : Polos GEOGRAPHICAL NORWAY - ROHNER - Promo : Caméra MINOX - COMPEX

2014-06-25 Thread ALLSPORTSHOP'PING
Offres exclusives sur les produits du site Allsportshop.fr Version en ligne| Ajouter Allsportshop à votre carnet d'adresses VENTES PRIVÉES TEXTILE CYCLE HIGH TECH FITNESS OUTDOOR GLISSE URBAINE BAGAGERIE VENTES PRIVÉES GEOGRAPHICAL NORWAY: ALLSPORTSHOP.fr vous présente les

Mixed-mode frontend

2014-06-25 Thread Claus Strommer
Hello all, For reasons that I'll spare you I'm working on replacing a Pound balancer with HAProxy 1.5. I am mostly happy with my configuration, except for one thing: All of my backends accept http, except for a Node.js server which accepts mixed http and https. This server has a login page that

Re: Mixed-mode frontend

2014-06-25 Thread Baptiste
On Wed, Jun 25, 2014 at 5:47 PM, Claus Strommer claus.strom...@primal.com wrote: Hello all, For reasons that I'll spare you I'm working on replacing a Pound balancer with HAProxy 1.5. I am mostly happy with my configuration, except for one thing: All of my backends accept http, except for

Re: Mixed-mode frontend

2014-06-25 Thread Claus Strommer
Whoops! Just to be safe, here's the whole thing again, with additions 8 snip frontend httpweb bind *:80 bind *:443 ssl crt /etc/ssl/private/primal_bundle_2014.pem mode http option httplog acl host_about hdr_end(host) -i about.site.com acl

Re: Mixed-mode frontend

2014-06-25 Thread Claus Strommer
By the way, the ssl option for the server did the trick. Based on the documentation for the frontend mode option (tcp ... This is the default mode. It should be used for SSL, SSH, SMTP, ...) I had assumed that no such backend option was available. But I'm glad I was wrong! Thanks again,