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

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
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 site is : caipiao.aaa.com My second web site is: www.bbb.com My goal is redirect URL from

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 connect

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: Need help about reqrep

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 has

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 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 need

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
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 Tarreau a écrit : Hi, On Fri, Sep 23, 2011

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
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_caipiaos_01 0/0/0

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 I'm lost,

RE: Need help about reqrep (urgent)

2011-09-24 Thread DerekLiao
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\2 reqirep ^Host: Host:\ www.bbb.com Logs: srv_aaa_caipiaos_01 0/0/0/2/2

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.1 but

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