Hello Lukas,
Based on the haproxy documentation
http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4-reqirep
<http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4-reqirep> I have
changed the configuration.
Beside changing rspirep, I saw the traffic in wireshark and saw “GET http:/
<http://192.168.68.100/>….” data. So I also changed the value “Location:” to
“Get”.
frontend http1 127.0.0.10:1080
default_backend ssl1
backend ssl1
reqirep ^GET\ http://(.*):80(.*) GET\ https://\1:443\2
reqirep ^GET\ http://(.*) GET\ https://\1
server nginx 192.168.68.100:443 ssl verify required ca-file
/etc/haproxy/certs/ca.crt crt /etc/haproxy/certs/client.pem
And it works now!
Thanks for your help!
> Op 30 mrt. 2015, om 18:03 heeft Lukas Tribus <[email protected]> het
> volgende geschreven:
>
>> 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.
>
> rspirep rewrites HTTP responses, not requests.
>
> What *exactly* are you trying to do?
>
>
>