Re: Need help about reqrep (urgent)

2011-09-24 Thread Willy Tarreau
On Sat, Sep 24, 2011 at 03:02:59PM +, DerekLiao wrote: > > configuration files: > > > reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*)\1\ /result_aaa\2 > reqirep ^Host: Host:\ www.bbb.com > > Logs: > srv_aaa_caipiaos_01 0/0/0/2/2 404 735 - - 0/0/0/0/0 0/0 "GET > /result_aaa/ HTTP/1.

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
.@1wt.eu > Subject: Re: Need help about reqrep (urgent) > Date: Sat, 24 Sep 2011 17:27:37 +0200 > > Le Samedi 24 Septembre 2011 15:02:59 DerekLiao a écrit : > > configuration files: > > > > > > reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*)\1\ /result_aaa

Re: Need help about reqrep (urgent)

2011-09-24 Thread Cyril Bonté
Le Samedi 24 Septembre 2011 15:02:59 DerekLiao a écrit : > configuration files: > > > reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*)\1\ /result_aaa\2 > reqirep ^Host: Host:\ www.bbb.com > > Logs: > srv_aaa_caipiaos_01 0/0/0/2/2 404 735 - - 0/0/0/0/0 0/0 "GET > /result_aaa/ HTTP/1.1" >

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
ail.com To: cyril.bo...@free.fr CC: haproxy@formilux.org; w...@1wt.eu Subject: RE: Need help about reqrep (urgent) Date: Sat, 24 Sep 2011 15:01:33 + configuration files: reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*)\1\ /result_aaa\ reqirep ^Host: Host:\ www.bbb.com Logs: srv_aaa_caipi

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
result_aaa/ -- > From: cyril.bo...@free.fr > To: y...@hotmail.com > CC: haproxy@formilux.org; w...@1wt.eu > Subject: Re: Need help about reqrep (urgent) > Date: Sat, 24 Sep 2011 16:32:05 +0200 > > Le Samedi 24 Septembre 2011 14:10:19 DerekLiao a écrit

Re: Need help about reqrep (urgent)

2011-09-24 Thread Cyril Bonté
Le Samedi 24 Septembre 2011 14:10:19 DerekLiao a écrit : > All, > I tried what you suggested, I think it s also a problem on rewrite URI: > configuration files: > reqrep ^([^\ ]*)\ /kaijiang(/.*) \1\ /result_bbb\2 > reqirep ^Host: Host:\ www.bbb.com > #reqdeny ^([^\ ]*)\ /kaijia

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
g, reqdeny works as expected > From: cyril.bo...@free.fr > To: y...@hotmail.com > CC: haproxy@formilux.org; w...@1wt.eu > Subject: Re: Need help about reqrep (urgent) > Date: Sat, 24 Sep 2011 14:35:25 +0200 > > Hi all, > > Le Samedi 24 Septembre 2011 12:43:35 Willy Tarr

Re: Need help about reqrep (urgent)

2011-09-24 Thread Cyril Bonté
Hi all, Le Samedi 24 Septembre 2011 12:43:35 Willy Tarreau a écrit : > Hi, > > On Fri, Sep 23, 2011 at 11:20:52AM +, DerekLiao wrote: > > backend cs_aaa_caipiaos_1 > > > > reqrep > > > > ^([^\ ]*)\ /kaijiang(/.*) \1\ /result_aaa\2 > > > > option httpchk GET / HTTP/1.1\r\nHost:

Re: Need help about reqrep (urgent)

2011-09-24 Thread Willy Tarreau
On Sat, Sep 24, 2011 at 11:23:07AM +, DerekLiao wrote: > > is it possible to get detail rewrite infomation like apache error log does? No, what haproxy logs is what it *receives*. That's why we're asking for what is seen on the other side. > tcpdump, little bit diffcult ,too much taffice nee

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
is it possible to get detail rewrite infomation like apache error log does? tcpdump, little bit diffcult ,too much taffice need to analyse From: luky...@hotmail.com To: y...@hotmail.com; w...@1wt.eu CC: haproxy@formilux.org Subject: RE: Need help about reqrep (urgent) Date: Sat, 24 Sep 2011 13

RE: Need help about reqrep (urgent)

2011-09-24 Thread Lukas Tribus
tcpdump it on the haproxy box then. Somehow you need to understand what happens between haproxy and the backend. Lukas From: y...@hotmail.com To: w...@1wt.eu CC: haproxy@formilux.org Subject: RE: Need help about reqrep (urgent) Date: Sat, 24 Sep 2011 11:15:09 + from haproxy, I can

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
otmail.com > CC: haproxy@formilux.org > Subject: Re: Need help about reqrep (urgent) > > On Sat, Sep 24, 2011 at 11:06:07AM +, DerekLiao wrote: > > > > health check is normal, I checked from haproxy monitor screen , > > OK, maybe it's your server which is return

Re: Need help about reqrep (urgent)

2011-09-24 Thread Willy Tarreau
On Sat, Sep 24, 2011 at 11:06:07AM +, DerekLiao wrote: > > health check is normal, I checked from haproxy monitor screen , OK, maybe it's your server which is returning 503 then. > How to check reqrep is working fine or not ? That's what I explained, in apache's logs. > I double the URI h

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
health check is normal, I checked from haproxy monitor screen , How to check reqrep is working fine or not ? I double the URI has not been replaced > Date: Sat, 24 Sep 2011 12:52:01 +0200 > From: w...@1wt.eu > To: y...@hotmail.com > CC: haproxy@formilux.org > Subject: Re:

Re: Need help about reqrep (urgent)

2011-09-24 Thread Willy Tarreau
On Sat, Sep 24, 2011 at 10:46:23AM +, DerekLiao wrote: > > Is it set correctly It does not indicate what's in it. What do you mean by "correctly" ? > I only see 503/404 error on haproxy log, I already set debug level ! version > 1.4.14 503s indicate that sometimes there is no server to co

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
bject: Re: Need help about reqrep (urgent) > > Hi, > > On Fri, Sep 23, 2011 at 11:20:52AM +, DerekLiao wrote: > > Hey there, > > > > I > > have trouble with direct ??reqrep?? > > > > what I want is : > > > > My main web

Re: Need help about reqrep (urgent)

2011-09-24 Thread Willy Tarreau
Hi, On Fri, Sep 23, 2011 at 11:20:52AM +, DerekLiao wrote: > Hey there, > > I > have trouble with direct ??reqrep?? > > what I want is : > > My main web site is : caipiao.aaa.com > > > My second web site is: www.bbb.com > > My goal is redirect URL from caipiao.aaa.com/ kaijiang > ---

Need help about reqrep (urgent)

2011-09-23 Thread DerekLiao
Hey there, I have trouble with direct “reqrep” what I want is : My main web site is : caipiao.aaa.com My second web site is: www.bbb.com My goal is redirect URL from caipiao.aaa.com/ kaijiang ->www.bbb.com/result_aaa , but the URL in the browse still need to display caipiao