[squid-users] Configure squid 3.5 to use different parent proxies for different listening ports
Damir Bagapov
damir.k.bagapov at gmail.com
Mon Feb 20 21:05:36 UTC 2017
Hi,
I have following configuration:
# Squid normally listens to port 3128
http_port 3128
cache_peer proxy1_address parent proxy1_port 0 proxy-only default
login=name1:pass1
never_direct allow all
And I need to configure squid in a way when all incoming requests to 3128
port will be redirected to proxy1 (as it works now), and all incoming
requests to 3127 will be redirected to proxy2. Is it possible to do?
I've tried to use ACL described here http://wiki.squid-cache.o
rg/ConfigExamples/Reverse/MultipleWebservers#Other_Criteria_than_Domain
http_port 3128
http_port 3127
acl port_3128 port 3128
acl port_3127 port 3127
# 3128
cache_peer proxy01 parent 3128 0 no-query originserver name=proxy3128
cache_peer_access proxy3128 allow port_3128
cache_peer_access proxy3128 deny port_3127
# 3127
cache_peer proxy02 parent 3128 0 no-query originserver name=proxy3127
cache_peer_access proxy3127 allow port_3127
cache_peer_access proxy3127 deny port_3128
But its not working =(
--
Best regards,
Damir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170220/ad577dba/attachment.html>
More information about the squid-users
mailing list