I have a question about setting up squid as a reverse proxy behind a transparent / forward proxy. Basically, what I am looking for is whether it's possible to set up (B) in the following:
Client (A) --> Squid as Reverse Proxy (B) --> Squid as Forward Proxy (C) --> Origin Servers Depending on Client Request URI (D)
Depending on the client request from (A), (B) could route the request to different origin servers (multiple cache_peer lines). The request has to go through (C) to reach (D), as (C) is the only way out of the network to the internet. Moreover, the logic of figuring out where to go to lies in (B).
And we do not have access to or control of (A) and (C).
Let's say I have the following cache_peer lines in (B), and the address for (C) is "forward-proxy.example.com:3128".
cache_peer origin-x.example.com parent 443 0 no-query originserver ssl cache_peer origin-y.example.com parent 443 0 no-query originserver ssl cache_peer origin-z.example.com parent 443 0 no-query originserver ssl
What would be the syntax to configure (B) to use "forward-proxy.example.com:3128" (C) as the forward proxy to the origin servers (D) ?