AW: http to https redirection

From: MEßNER Arthur,Ing.Mag. <Arthur.MEssNER#tilak.at>
Date: Mon, 19 Dec 2011 16:48:02 +0100


Great it works,

is misunderstood the documentation an thought it would also be redirected to location /

Thanks

-----Ursprüngliche Nachricht-----
Von: Graeme Donaldson [mailto:graeme#donaldson.za.net] Gesendet: Montag, 19. Dezember 2011 16:12 An: MEßNER Arthur,Ing.Mag.
Cc: haproxy#formilux.org
Betreff: Re: http to https redirection

On 19 December 2011 16:37, MEßNER Arthur,Ing.Mag. <Arthur.MEssNER#tilak.at> wrote:
> hello,
>
> is there any method to do http to https redirection with variable Location
>
> my configuration:
>
> frontend someserver-clear
>      bind 10.16.246.9:80
>        acl clear      dst_port  80
>        redirect location https://someserver.somedomain/ if clear
>
> it works but redirects something like this
>
> http://soemserver.somedomain/login/index.html
>
> to https://someserver.somedomain/
> - no path

Use "redirect prefix" instead of "redirect location". Prefix will retain the rest of the URI.

HTH,
Graeme. Received on 2011/12/19 16:48

This archive was generated by hypermail 2.2.0 : 2011/12/19 17:00 CET