> A lot of progress has indeed been made, but we still don't have such
> ability and it will take some time to implement.

I'd imagine so. Thanks for the update.

> No idea right now. From what I understand you'd like to take the host
> header and put it into your redirects, prepended by "http://";; or "https://";;
> depending on the type of redirection, that's it ?

That is correct. I think everything is in place to check for the conditions, so 
all that needs to be done is be able redirect just changing the scheme.

> Maybe it should not be too hard to implement some "http-host" and
> "https-host" options to the "redirect" statement, as alternatives
> to "prefix", and which would automatically concatenate a scheme
> ("http://";; or "https://";;) with the extract of the Host header and
> the current URI. I must say I have not much studied the idea, but
> it should be doable without too much effort.

So are you saying in addition to: redirect prefix and redirect location you 
would add:
redirect http-host    [{if | unless} 
redirect https-host    [{if | unless} 

Since at this point we have the scheme and the host built, would it make sense 
for  to be a specified path or use the path given in the original request (if 
omitted)?

I would love to see this in a dev release. I am somewhat new to HAProxy, so I 
am not sure of your release schedule. I could test it in my local environment. 
If this would get into 1.5 and be a stable release I would be really happy...!

Thanks for your time Willy!

Matt Smith

---
posted at http://www.serverphorums.com
http://www.serverphorums.com/read.php?10,305872,497983#msg-497983

Reply via email to