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

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 28 Jun 2007 23:02:45 +0200

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 Thu Jun 28 2007 - 15:02:50 MDT

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