I have a problem regarding the squid configuration.
I want squid to always forward requests to a specific domain (for ex. "never_direct.com") to another proxy server (for example "special_proxy.com").
What I did was adding the following to the squid.conf:
cache_peer special_proxy.com parent 3128 7 no-query no-digest no-netdb-exchange login=abc:secret
cache_peer_domain special_proxy.com never_direct.com
cache_peer_domain other_peer.com !never_direct.com
acl TESTDOMAIN dstdomain never_direct.com
never_direct allow TESTDOMAIN
However it does not work as expected. The requests are redirected sometime, but not always. Sometimes the local squid directly connects to the never_direct.com, which should not happen.
Do you have any suggestions about what went wrong here?
Thanks in advance!