Hello,

I’m trying to rewrite the HTTP header, rewriting http to https. Using the 
following article 
http://blog.haproxy.com/2013/02/26/ssl-offloading-impact-on-web-applications/ 
<http://blog.haproxy.com/2013/02/26/ssl-offloading-impact-on-web-applications/> 
.

I have the following configuration:

frontend http1 127.0.0.10:1080
        rspirep ^Location:\ http://(.*):80(.*) Location:\ https://\1:443\2
        rspirep ^Location:\ http://(.*) Location:\ https://\1
        default_backend ssl1

backend ssl1
        server sslserver 192.168.68.100:443 ssl verify required ca-file 
/etc/haproxy/certs/ca.crt crt /etc/haproxy/certs/client.pem

Everything is going great, except the rewriting part. The requests are sended 
to the sslserver with the original http:// location.

Hopefully someone can help me with the rewrite part.

Abdelouahed

Reply via email to