RE: URL rewrite

2018-08-31 Thread Norman Branitsky
Message- From: Norman Branitsky Sent: Monday, August 27, 2018 6:53 PM To: 'Tim Düsterhus' ; haproxy Subject: RE: URL rewrite Your examples are all correct. -Original Message- From: Tim Düsterhus Sent: Monday, August 27, 2018 6:22 PM To: Norman Branitsky ; haproxy Subject: Re: URL

RE: URL rewrite

2018-08-27 Thread Norman Branitsky
Your examples are all correct. -Original Message- From: Tim Düsterhus Sent: Monday, August 27, 2018 6:22 PM To: Norman Branitsky ; haproxy Subject: Re: URL rewrite Norman, Am 27.08.2018 um 23:45 schrieb Norman Branitsky: > I need to rewrite my URLs according to the following patt

Re: URL rewrite

2018-08-27 Thread Tim Düsterhus
Norman, Am 27.08.2018 um 23:45 schrieb Norman Branitsky: > I need to rewrite my URLs according to the following pattern: > cloud.example.com/?query > becomes: > .cloud.example.com/main?query > > HAProxy will terminate SSL - I have a wildcard certificate for > *.cloud.example.com. > As the

URL rewrite

2018-08-27 Thread Norman Branitsky
I need to rewrite my URLs according to the following pattern: cloud.example.com/?query becomes: .cloud.example.com/main?query HAProxy will terminate SSL - I have a wildcard certificate for *.cloud.example.com. As the target servers are running Docker Enterprise, I do not need DNS entries for

RE: URL Rewrite

2014-09-10 Thread JDzialo John
: RE: URL Rewrite OK. Here is my config file, I have added the http-server-close option. I've read that is necessary to get reqirep to work properly since it does not work in tunnel mode. global log /dev/loglocal0 log /dev/loglocal1 notice chroot /var/lib

RE: URL Rewrite

2014-09-02 Thread JDzialo John
3:40 AM To: JDzialo John Cc: haproxy@formilux.org Subject: Re: URL Rewrite John, might be an issue somewhere else in your conf, cause your rewrite works properly. Baptiste On Sun, Aug 31, 2014 at 4:03 PM, JDzialo John jdzi...@edrnet.com wrote: OK. So I tried a few things I found

Re: URL Rewrite

2014-09-01 Thread Baptiste
to replace the matched string above while keeping any query string in tact. Is there something I'm doing wrong in my regular expression? Thanks From: Baptiste [mailto:bed...@gmail.com] Sent: Friday, August 29, 2014 5:24 PM To: JDzialo John Cc: haproxy@formilux.org Subject: Re: URL

RE: URL Rewrite

2014-08-31 Thread JDzialo John
: Friday, August 29, 2014 5:24 PM To: JDzialo John Cc: haproxy@formilux.org Subject: Re: URL Rewrite On Fri, Aug 29, 2014 at 10:50 PM, JDzialo John jdzi...@edrnet.commailto:jdzi...@edrnet.com wrote: I want to capture the URL coming in and rewrite it to a new location. Take this... http

URL Rewrite

2014-08-29 Thread JDzialo John
I want to capture the URL coming in and rewrite it to a new location. Take this... http://web.foo.com/ordering/vaporencroachment/vaporencroachment.html?pguid=12957559-e75e-4daf-a8c6-928030d714a9lsessguid=b667871e-f11a-4960-8ad4-bb40ac249364 And convert it to this...

Re: URL Rewrite

2014-08-29 Thread Baptiste
On Fri, Aug 29, 2014 at 10:50 PM, JDzialo John jdzi...@edrnet.com wrote: I want to capture the URL coming in and rewrite it to a new location. Take this...

Re: Need help with url rewrite

2014-07-08 Thread Baptiste
On Fri, Jul 4, 2014 at 8:42 PM, Jeffrey Scott Flesher Gmail jeffrey.scott.fles...@gmail.com wrote: If a Picture is worth a 1000 Words: If the url does not have any path like this: http://mad-news.net/ acl has_ww_uri path_beg -i /ww returns false reqirep ^([^\ :]*)\ /(.*) \1\ /ww/\2 if

Re: Need help with url rewrite

2014-07-04 Thread Jeffrey Scott Flesher Gmail
If a Picture is worth a 1000 Words: If the url does not have any path like this: http://mad-news.net/ acl has_ww_uri path_beg -i /ww returns false reqirep ^([^\ :]*)\ /(.*) \1\ /ww/\2 if !has_ww_uri http://mad-news.net/ww/en/ it adds the ww, the program with is wthttpd (Wt) defaults to en for

Need help with url rewrite

2014-07-03 Thread Jeffrey Scott Flesher Gmail
I have a url that always begins with ww, ie http://domain.tdl/ww/en/..., I want to rewrite the url to include the ww, I tried the below, it works, but changes the path or something, because it cause the resources like css and images to not appear (404), does anyone know how to fix this or do

Re: Need help with url rewrite

2014-07-03 Thread Baptiste
On Thu, Jul 3, 2014 at 9:38 PM, Jeffrey Scott Flesher Gmail jeffrey.scott.fles...@gmail.com wrote: I have a url that always begins with ww, ie http://domain.tdl/ww/en/..., I want to rewrite the url to include the ww, I tried the below, it works, but changes the path or something, because it

Re: Need help with url rewrite

2014-07-03 Thread Jeffrey Scott Flesher Gmail
I have a URL lets say: http://example.com I want it to be rewritten by haproxy to: http://example.com/ww All I want is for haproxy to rewrite the URL only if it does not have any path, ie http://example.com, then add the ww to it, so it becomes http://example.com/ww I do not have Apache on the

Re: URL rewrite question

2010-02-06 Thread Willy Tarreau
Hi, On Thu, Feb 04, 2010 at 10:31:03PM +0100, Holger Just wrote: On 2010-02-04 21:15, Sriram Chavali wrote: I am trying to rewrite URLs using haproxy's reqirep directive. The url that I am trying to rewrite is of the pattern /action/register?param1=fooparam2=barparam3=baz The URL

Re: URL rewrite question

2010-02-06 Thread Holger Just
On 2010-02-06 10:55, Willy Tarreau wrote: reqrep ([^\ ]*)\ /action.register\?([^]*)*param2=bar(.*) \1\ /newaction\?\2param2=bar\3 This does it. Looks like your Regex Kung Fu is stronger than mine. But well, it was late :) --Holger

URL rewrite question

2010-02-04 Thread Sriram Chavali
I am trying to rewrite URLs using haproxy's reqirep directive. The url that I am trying to rewrite is of the pattern /action/register?param1=fooparam2=barparam3=baz The URL that I want to be rewritten is /newaction?param1=fooparam2=barparam3=baz on the condition that whenever param2=bar The

Re: URL rewrite question

2010-02-04 Thread Holger Just
On 2010-02-04 21:15, Sriram Chavali wrote: I am trying to rewrite URLs using haproxy's reqirep directive. The url that I am trying to rewrite is of the pattern /action/register?param1=fooparam2=barparam3=baz The URL that I want to be rewritten is /newaction?param1=fooparam2=barparam3=baz