Urgent - removal of email address - spam!
Please remove the following email from this thread of emails: todd.oh...@spidertracks.co.nz
urgent ftp problem.
Hi, just subscribed to the iist, not had confirmation response yet, so i hope this gets through and i can see responses. i've got haproxy 1.5 installed and working, and it's working well so far. i'm setting up a few servers to handle all our ftp, but in the meantime, i'm using haproxy to proxy ftp from specific ip's to specific servers. typical ftp listener in my haproxy.cfg: listen ubuntu-server-12-ftp bind 213.146.180.246:21 mode tcp bind-process 1 option tcplog balance leastconn server ubuntu-server-12 192.168.51.201:21 send-proxy check iptables rules on the load balancers: -A PREROUTING -d 213.146.180.246/32 -p tcp -m tcp --dport 6100:6200 -j DNAT --to-destination 192.168.51.201 -A POSTROUTING -s 192.168.51.201/32 -j SNAT --to-source 213.146.180.246 the server on 192.168.51.201 has the gateway address 192.168.51.1, which is the floating ip used between the two haproxy servers. the haproxy servers default route for 0.0.0.0/0 is our firewall this is all working fine for external ftp access. i've configure proftpd with the required defaultaddress, masqueradeaddress, passive port range etc. however, i've now found out i'm also required to allow ftp use FROM this server to external ftp servers. however when i try to ftp out, i can connect to a server and login, but can't do anything else: Connected to ftp.*.com. 220 Welcome to the *** FTP service. Name (ftp..com:root): p*** 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 500 Illegal PORT command. ftp: bind: Address already in use ftp> dir 500 Illegal PORT command. ftp> pwd 257 "/" ftp> what do i need to do to get this working? thanks lee.
URGENT
Outstanding Inheritance.pdf Description: Adobe PDF document
Re: need an information on urgent basis.....
Hi, Thank you very much.. On Nov 19, 2013 9:55 PM, "Baptiste" wrote: > Hi, > > Please contact Exceliance, which delivers HAProxy Profesional Services. > http://www.exceliance.fr/en/haproxy-professional-services > > Also provide as much information as you can on your setup :) > > Baptiste > > On Tue, Nov 19, 2013 at 4:42 PM, sushant dangare > wrote: > > Hi, > > > > we are going to set an Ha-proxy setup so please let us know if we need an > > any help / support will you help me? > > > > or can we get purchased licence any thing like that...? > > > > please revert on urgent basis. > > > > -- > >Thanking You, > > Sushant J. Dangare. >
Re: need an information on urgent basis.....
On 19 November 2013 15:42, sushant dangare wrote: > Hi, > > we are going to set an Ha-proxy setup so please let us know if we need an > any help / support will you help me? > > or can we get purchased licence any thing like that...? > > please revert on urgent basis. Hi Sushant - This is the public mailing list for the open source software HAProxy. If you have a problem, this is the best place to post details and ask for help. Whilst many smart and knowledgeable people read (and reply to) this list, no-one here can guarantee that every problem you come across will be treated as urgently as /you/ would treat it. Such is the nature of open source software. For contractual support, I suggest you take a look at http://haproxy.1wt.eu/#supp and http://haproxy.1wt.eu/#prod and talk to one of the companies mentioned. Regards, Jonathan
need an information on urgent basis.....
Hi, we are going to set an Ha-proxy setup so please let us know if we need an any help / support will you help me? or can we get purchased licence any thing like that...? please revert on urgent basis. -- Thanking You, Sushant J. Dangare.
Invitation: I NEED YOUR URGENT RESPOND PLEASE @ Thu Oct 3, 2013 9:30am - 10:30am (aminaabdall...@gmail.com)
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20131003T133000Z DTEND:20131003T143000Z DTSTAMP:20131003T131638Z ORGANIZER;CN=aminaabdall...@gmail.com:mailto:aminaabdall...@gmail.com UID:lqksds0for6pt1c837u6kck...@google.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=haproxy@formilux.org;X-NUM-GUESTS=0:mailto:haproxy@formilux.org CREATED:20131003T131635Z DESCRIPTION:Hi Dear !\nHow are you doing today\,hope fine\,My name is Amina Ahmed and i am a girl. I saw your profile today\nI will be very glad if yo u can contact me through my email address\, and i will tell you more about myself here is my address(aminaabdall...@hotmail.com) Remember the distance \,color or age does not matter but love matters a lot in life.\nI am waitin g for your reply\,\nAmina.\nView your event at http://www.google.com/calend ar/event?action=VIEW&eid=bHFrc2RzMGZvcjZwdDFjODM3dTZrY2tmNWMgaGFwcm94eUBmb3 JtaWx1eC5vcmc&tok=MjQjYW1pbmFhYmRhbGxhMTFAZ21haWwuY29tMDcyNDk0YmU2ZjVlNzQ3N mFmOWUxMjI5MjEzYWFkY2EyOGJiN2YyOQ&ctz=America/New_York&hl=en. LAST-MODIFIED:20131003T131636Z LOCATION: SEQUENCE:0 STATUS:CONFIRMED SUMMARY:I NEED YOUR URGENT RESPOND PLEASE TRANSP:OPAQUE END:VEVENT END:VCALENDAR invite.ics Description: application/ics
Re: Need help about reqrep (urgent)
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 i can access www.bbb.com/result_aaa/ You still did not comment on the point I made below : > BTW, we're all assuming that you have appropriately set "option httpclose" > or "option http-server-close" so that all requests are rewritten, not only > the first one. You might want to double-check. We still have no trace of the request sent to the server either, which will help find where your error is. It's particularly difficult to help you because the discussion seems to be one-way, and we're playing riddles with your configuration. With all the requested info, maybe your site would already be running now. If you want people to help you, please try to be a bit more open about your config, and to respond to their questions. Till now your requests look more like complaints than requests for help. Willy
RE: Need help about reqrep (urgent)
caipiao.aaa.com/kaijiang(my website) -> www.bbb.com/result_aaa(third party website) when i enter "caipiao.aaa.com/kaijiang", it should show me the content of www.bbb.com/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 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 404 735 - - 0/0/0/0/0 0/0 "GET > > /result_aaa/ HTTP/1.1" > > > > I'm lost, I don't understand what you are testing. > Why is your log showing /result_aaa/ if you want to test /kaijiang ? > > Also, you don't provide enough information at the same time: > Why your server is not the same as the one you provided at the beginning : > srv_aaa_caipiaos_1_01 ? > I think you forgot to give other pieces of configuration. It looks like you > are testing another backend configuration. > > Confirmed by your frontend acls if they didn't change : > acl acl_dom_caipiao.aaa.com hdr_dom(host) caipiao.aaa.com > acl acl_url_kaijiang path_beg -i /kaijiang > use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com acl_url_kaijiang > > If you ask for /result_aaa/ the condition on the last line won't match. > > Can you provide everything (hide the IP/host names/passwords for security > reasons) ? This will save time to everybody ;-) > > > but i can access www.bbb.com/result_aaa/ > > I suppose that you missed something about the Host headers. > > OK, you can access to www.bbb.com/result_aaa/ > But it looks like your hostname in front of haproxy is caipiao.aaa.com (or > aaa.com) > Are you sure the server www.bbb.com accepts your virtualhost ? > > You can verify it : > curl -i -H "Host: caipiao.aaa.com" www.bbb.com/result_aaa/ > > Isn't it a 404 ? > > > -- > Cyril Bonté
Re: Need help about reqrep (urgent)
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, I don't understand what you are testing. Why is your log showing /result_aaa/ if you want to test /kaijiang ? Also, you don't provide enough information at the same time: Why your server is not the same as the one you provided at the beginning : srv_aaa_caipiaos_1_01 ? I think you forgot to give other pieces of configuration. It looks like you are testing another backend configuration. Confirmed by your frontend acls if they didn't change : acl acl_dom_caipiao.aaa.com hdr_dom(host) caipiao.aaa.com acl acl_url_kaijiang path_beg -i /kaijiang use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com acl_url_kaijiang If you ask for /result_aaa/ the condition on the last line won't match. Can you provide everything (hide the IP/host names/passwords for security reasons) ? This will save time to everybody ;-) > but i can access www.bbb.com/result_aaa/ I suppose that you missed something about the Host headers. OK, you can access to www.bbb.com/result_aaa/ But it looks like your hostname in front of haproxy is caipiao.aaa.com (or aaa.com) Are you sure the server www.bbb.com accepts your virtualhost ? You can verify it : curl -i -H "Host: caipiao.aaa.com" www.bbb.com/result_aaa/ Isn't it a 404 ? -- Cyril Bonté
RE: Need help about reqrep (urgent)
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 i can access www.bbb.com/result_aaa/ From: y...@hotmail.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_caipiaos_01 0/0/0/2/2 404 735 - - 0/0/0/0/0 0/0 "GET /result_aaa/ HTTP/1.1" but i can access www.bbb.com/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 : > > 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 ^([^\ ]*)\ /kaijiang > > reqdeny ^([^\ ]*)\ /result_bbb > > option httpchk GET / HTTP/1.1\r\nHost:\ www.bbb.com > > server srv_aaa_caipiaos_1_01 www.bbb.com:80 check > > > > The problem show up like : > > srv_aaa_caipiaos_1_01 20993/0/0/0/20993 404 484 - - 4/4/0/1/0 0/0 "GET > > /kaijiang HTTP/1.1" > > Ok, now your log shows that you don't have a / at the end of your request but > your regexp requires one. > If you want it to work, you need to adapt the regexp depending on your needs. > For example : > reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*) \1\ /result_bbb\2 > > This will allow requests like : > /kaijiang > /kaijiang/... > /kaijiang?param=value... > > but won't match things like : > /kaijiangfoo > /kaijiangbar > /kaijiang;param=value > > -- > Cyril Bonté
RE: Need help about reqrep (urgent)
configuration files: reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*)\1\ /result_aaa\ 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 i can access www.bbb.com/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 : > > 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 ^([^\ ]*)\ /kaijiang > > reqdeny ^([^\ ]*)\ /result_bbb > > option httpchk GET / HTTP/1.1\r\nHost:\ www.bbb.com > > server srv_aaa_caipiaos_1_01 www.bbb.com:80 check > > > > The problem show up like : > > srv_aaa_caipiaos_1_01 20993/0/0/0/20993 404 484 - - 4/4/0/1/0 0/0 "GET > > /kaijiang HTTP/1.1" > > Ok, now your log shows that you don't have a / at the end of your request but > your regexp requires one. > If you want it to work, you need to adapt the regexp depending on your needs. > For example : > reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*) \1\ /result_bbb\2 > > This will allow requests like : > /kaijiang > /kaijiang/... > /kaijiang?param=value... > > but won't match things like : > /kaijiangfoo > /kaijiangbar > /kaijiang;param=value > > -- > Cyril Bonté
Re: Need help about reqrep (urgent)
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 ^([^\ ]*)\ /kaijiang > reqdeny ^([^\ ]*)\ /result_bbb > option httpchk GET / HTTP/1.1\r\nHost:\ www.bbb.com > server srv_aaa_caipiaos_1_01 www.bbb.com:80 check > > The problem show up like : > srv_aaa_caipiaos_1_01 20993/0/0/0/20993 404 484 - - 4/4/0/1/0 0/0 "GET > /kaijiang HTTP/1.1" Ok, now your log shows that you don't have a / at the end of your request but your regexp requires one. If you want it to work, you need to adapt the regexp depending on your needs. For example : reqrep ^([^\ ]*)\ /kaijiang([/\?\ ].*) \1\ /result_bbb\2 This will allow requests like : /kaijiang /kaijiang/... /kaijiang?param=value... but won't match things like : /kaijiangfoo /kaijiangbar /kaijiang;param=value -- Cyril Bonté
RE: Need help about reqrep (urgent)
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 ^([^\ ]*)\ /kaijiang reqdeny ^([^\ ]*)\ /result_bbb option httpchk GET / HTTP/1.1\r\nHost:\ www.bbb.com server srv_aaa_caipiaos_1_01 www.bbb.com:80 check The problem show up like : srv_aaa_caipiaos_1_01 20993/0/0/0/20993 404 484 - - 4/4/0/1/0 0/0 "GET /kaijiang HTTP/1.1" and reqdeny is not working , after i changed to #reqdeny ^([^\ ]*)\ /kaijiang, 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 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:\ www.bbb.com > > > > > > server srv_aaa_caipiaos_1_01 www.bbb.com:80 check > > > > Are you sure that your server does not also consider the Host > > header and refuses to serve /result_aaa from caipiao.aaa.com ? > > I take the thread at the top because for me Willy is right from the beginning. > Your issue is probably not in your reqrep line but because you don't modify > the Host header before sending the request to the remote server (as you do in > your "httpchk" test). > > You should try to add a second reqrep (or reqirep) to change the host : > reqirep ^Host: Host:\ www.bbb.com > > > > when I access caipiao.aaa.com/kaijiang, I get a 404 error, looks like > > > reqrep did not working~ > > And this is probably due to the fact that you try to contact a virtualhost > caipiao.aaa.com on the remote server, which doesn't exist. > > > -- > Cyril Bonté
Re: Need help about reqrep (urgent)
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:\ www.bbb.com > > > > server srv_aaa_caipiaos_1_01 www.bbb.com:80 check > > Are you sure that your server does not also consider the Host > header and refuses to serve /result_aaa from caipiao.aaa.com ? I take the thread at the top because for me Willy is right from the beginning. Your issue is probably not in your reqrep line but because you don't modify the Host header before sending the request to the remote server (as you do in your "httpchk" test). You should try to add a second reqrep (or reqirep) to change the host : reqirep ^Host: Host:\ www.bbb.com > > when I access caipiao.aaa.com/kaijiang, I get a 404 error, looks like > > reqrep did not working~ And this is probably due to the fact that you try to contact a virtualhost caipiao.aaa.com on the remote server, which doesn't exist. -- Cyril Bonté
Re: Need help about reqrep (urgent)
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 to analyse You don't need to let it run for minutes, just a few seconds during a click. Alternatively you can try to add a second rule after it to block the rewritten request. If you see that the request is blocked, then you can conclude it was properly rewritten : reqrep ^([^\ ]*)\ /kaijiang(/.*) \1\ /result_aaa\2 reqdeny ^([^\ ]*)\ /result_aaa BTW, we're all assuming that you have appropriately set "option httpclose" or "option http-server-close" so that all requests are rewritten, not only the first one. You might want to double-check. Regards, Willy
RE: Need help about reqrep (urgent)
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:20:49 +0200 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 see the URI is /kaijiang which was not changed I can't see the backend server's log, because it was out of my control, actually that is thirdparty company's web site > Date: Sat, 24 Sep 2011 13:11:05 +0200 > From: w...@1wt.eu > To: y...@hotmail.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 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 not been replaced > > How did you check that then ? If you look at your request line in > haproxy's logs and compare it to the line in apache's logs, it should> become > obvious if the replacement was partially, totally applied or > not at all. > > Willy >
RE: Need help about reqrep (urgent)
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 see the URI is /kaijiang which was not changed I can't see the backend server's log, because it was out of my control, actually that is thirdparty company's web site > Date: Sat, 24 Sep 2011 13:11:05 +0200 > From: w...@1wt.eu > To: y...@hotmail.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 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 not been replaced > > How did you check that then ? If you look at your request line in > haproxy's logs and compare it to the line in apache's logs, it should> become > obvious if the replacement was partially, totally applied or > not at all. > > Willy >
RE: Need help about reqrep (urgent)
from haproxy, I can see the URI is /kaijiang which was not changed I can't see the backend server's log, because it was out of my control, actually that is thirdparty company's web site > Date: Sat, 24 Sep 2011 13:11:05 +0200 > From: w...@1wt.eu > To: y...@hotmail.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 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 not been replaced > > How did you check that then ? If you look at your request line in > haproxy's logs and compare it to the line in apache's logs, it should > become obvious if the replacement was partially, totally applied or > not at all. > > Willy >
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 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 not been replaced How did you check that then ? If you look at your request line in haproxy's logs and compare it to the line in apache's logs, it should become obvious if the replacement was partially, totally applied or not at all. Willy
RE: Need help about reqrep (urgent)
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 (urgent) > > 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 to, > possibly because some health checks sometimes fail. > > Regards, > Willy >
Re: Need help about reqrep (urgent)
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 to, possibly because some health checks sometimes fail. Regards, Willy
RE: Need help about reqrep (urgent)
Is it set correctly I only see 503/404 error on haproxy log, I already set debug level ! version 1.4.14 I really need your help My Skype account : derek.liao66 > Date: Sat, 24 Sep 2011 12:43:35 +0200 > From: w...@1wt.eu > To: y...@hotmail.com > CC: haproxy@formilux.org > Subject: 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 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.aaa.com/kaijiang > > > > what I did is: > > > > Frontend: > > > > > > > > acl acl_dom_caipiao.aaa.com hdr_dom(host) > > caipiao.aaa.com > > > > acl acl_url_kaijiang path_beg > > -i /kaijiang > > > > use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com > > acl_url_kaijiang > > > > > > > > backend: > > > > backend cs_aaa_caipiaos_1 > > > > reqrep > > ^([^\ ]*)\ /kaijiang(/.*) \1\ /result_aaa\2 > > > > option httpchk GET / HTTP/1.1\r\nHost:\ www.bbb.com > > > > server srv_aaa_caipiaos_1_01 www.bbb.com:80 check > > > > Are you sure that your server does not also consider the Host > header and refuses to serve /result_aaa from caipiao.aaa.com ? > > > when I access caipiao.aaa.com/kaijiang, I get a 404 error, looks like > > reqrep did not > > working~ > > > > but if make a little change as below: > > > > acl acl_url_result path_beg > > -i/result_aaa > > > > use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com > > acl_url_result > > > > then I can access caipiao.aaa.com/result_aaa directly, So there should be > > a problem on reqrep > > Strange then. > > > Could you help to analyze the root cause of this ? > > What does your server say in its logs ? You'll have the useful information > there since you'll know how the request will have been rewritten. > > Regards, > Willy >
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 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.aaa.com/kaijiang > > what I did is: > > Frontend: > > > > acl acl_dom_caipiao.aaa.com hdr_dom(host) caipiao.aaa.com > > acl acl_url_kaijiang path_beg > -i /kaijiang > > use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com > acl_url_kaijiang > > > > backend: > > backend cs_aaa_caipiaos_1 > > reqrep > ^([^\ ]*)\ /kaijiang(/.*) \1\ /result_aaa\2 > > option httpchk GET / HTTP/1.1\r\nHost:\ www.bbb.com > > server srv_aaa_caipiaos_1_01 www.bbb.com:80 check > Are you sure that your server does not also consider the Host header and refuses to serve /result_aaa from caipiao.aaa.com ? > when I access caipiao.aaa.com/kaijiang, I get a 404 error, looks like reqrep > did not > working~ > > but if make a little change as below: > > acl acl_url_result path_beg > -i/result_aaa > > use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com > acl_url_result > > then I can access caipiao.aaa.com/result_aaa directly, So there should be a > problem on reqrep Strange then. > Could you help to analyze the root cause of this ? What does your server say in its logs ? You'll have the useful information there since you'll know how the request will have been rewritten. Regards, Willy
Need help about reqrep (urgent)
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.aaa.com/kaijiang what I did is: Frontend: acl acl_dom_caipiao.aaa.com hdr_dom(host) caipiao.aaa.com acl acl_url_kaijiang path_beg -i /kaijiang use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com acl_url_kaijiang backend: backend cs_aaa_caipiaos_1 reqrep ^([^\ ]*)\ /kaijiang(/.*) \1\ /result_aaa\2 option httpchk GET / HTTP/1.1\r\nHost:\ www.bbb.com server srv_aaa_caipiaos_1_01 www.bbb.com:80 check when I access caipiao.aaa.com/kaijiang, I get a 404 error, looks like reqrep did not working~ but if make a little change as below: acl acl_url_result path_beg -i/result_aaa use_backend cs_aaa_caipiaos_1 if acl_dom_caipiao.aaa.com acl_url_result then I can access caipiao.aaa.com/result_aaa directly, So there should be a problem on reqrep Could you help to analyze the root cause of this ?