RE: [squid-users] Muliple ports on single web backend

From: Jason Hitt <Jhitt@dont-contact.us>
Date: Fri, 29 Jun 2007 09:44:16 -0500

Does work cause cache_peer won't allow two lines with the same ip. :(
any ideas how to proceed

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@henriknordstrom.net]
Sent: Thursday, June 28, 2007 4:03 PM
To: Jason Hitt
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Muliple ports on single web backend

tor 2007-06-28 klockan 12:55 -0500 skrev Jason Hitt:
> Got a server running multiple websites off multiple ports. Currently
> squid is running one site on one port but need to map port x from
> backend to port y on squid but not seeing how. Read the reverse proxy
> faq and using cache_peer_domain or cache_peer_access to control this
> makes no sense to me, can someone explain it? Thanks

See the myport acl.

http_port 80 urlgroup=1 vhost
cache_peer backend1 parent 80 0 originserver no-query acl port80 myport
80 cache_peer_access backend1 allow port80

http_port 81 urlgroup=2 vhost
acl port81 myport 81
cache_peer backend2 parent 80 0 originserver no-query cache_peer_access
backend2 allow port81

the reason I use urlgroup above is to avoid cache pollution between the
two. If you instead use the port or dstdomain acls then this is not
needed..

Regards
Henrik
Received on Fri Jun 29 2007 - 08:44:23 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:05 MDT