Hello,
I have the following configuration wich works great:
frontend http1 127.0.0.10:1080
default_backend ssl1
backend ssl1
reqirep ^GET\ http://(.*):80(.*) GET\ https://\1:443\2 <https:/1:443/2>
reqirep ^GET\ http://(.*) GET\ https://\1 <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
The backend ssl1 is currently direct connected to the HTTPS-service. But in the
production situation there’s a squid proxy server between them. So the backend
must connect the HTTPS-service via the squid proxy server.
I know in apache I can achieve this by using the ProxyRemote Directive:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote
<http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote>.
How can I achieve this in haproxy?
Thanks in advance!
Abdelouahed