Hi list,

Currently, I'm using a nginx configuration to do protocol upgrade, from 
plain HTTP to HTTPS, basically, on port 80 I have a redirect that catch 
all virtual hosts and just upgrade the protocol, keeping the host and 
request untouched. It looks like this:
        rewrite ^ https://$host$request_uri? permanent;

Is there a way to do this only with haproxy without involving some http 
server configuration in the backend ?
In other words, is there a way to do something like this (with 1.5-
dev12) without hardcoding any domain so that a single rule may match any 
virtual host, extracting the domain from the original request:
        redirect prefix https://$hdr_dom code 301


>From the doc, I see nothing, but I may miss the good trick :)

Thanks !

-- 
Guillaume Castagnino
    [email protected] / [email protected]


Reply via email to