Re: [squid-users] query regarding multiple ports mapping

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 10 Jun 2013 23:11:12 +1200

On 10/06/2013 10:13 p.m., Vijendra Agarwal wrote:
> Hi,
> I am using squid as a reverse proxy. my web server listen on different
> ports and provide different services on each port.
> I configured squid to listen on different SSL port say 4439 and 4440
> I would like to map a request coming on 4439 port to my server's 8080
> port and request coming on 4440 port to my server;s 8081 port.
> Is that possible to configure in squid?
> If yes, can you please send me an example configuration or let me know
> which tag I can use for such configuration.

Of course. You control request and reply message flow through Squid
using ACLs. In your case you are wanting to use two cache_peer entries
to setup your origin server IP:port's as two different peer destinations
and cache_peer_access to filter which requests are sent to each one.

Some light reading:
  http://wiki.squid-cache.org/SquidFaq/SquidAcl
  http://www.squid-cache.org/Doc/config/cache_peer/
  http://www.squid-cache.org/Doc/config/cache_peer_access/

Amos
Received on Mon Jun 10 2013 - 11:11:27 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 10 2013 - 12:00:11 MDT