<div dir="ltr">Hello, <div><br></div><div>I am running into an issue and would really appreciate your help! </div><div><br></div><div>Basically I have created two cashe peers:<br><br></div><div><br></div><div><span style="color:rgb(185,187,190);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:14px;white-space:pre;background-color:rgb(47,49,54)">never_direct allow all </span></div><div><span style="color:rgb(185,187,190);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:14px;white-space:pre;background-color:rgb(47,49,54)">
acl ab1 dstdom_regex "/etc/squid/Bad_Homepages.squid"
cache_peer <a href="http://my.proxy.com">my.proxy.com</a> parent 31112 0 login=user:pw no-query name=user
cache_peer_access user </span><span style="color:rgb(185,187,190);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:14px;white-space:pre;background-color:rgb(47,49,54)">allow ab1
cache_peer_access user deny all

acl ab2 proxy_auth userName1
cache_peer myProxy</span><span style="color:rgb(185,187,190);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:14px;white-space:pre;background-color:rgb(47,49,54)"> parent 31112 0 login=user:pw</span><span style="color:rgb(185,187,190);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:14px;white-space:pre;background-color:rgb(47,49,54)"> no-query name=user2
cache_peer_access user2 allow ab2
cache_peer_access user2 deny all</span><br></div><div><span style="color:rgb(185,187,190);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:14px;white-space:pre;background-color:rgb(47,49,54)"><br></span></div><div><span style="color:rgb(185,187,190);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:14px;white-space:pre;background-color:rgb(47,49,54)"><br></span></div><div><div>As you can see, I have a Bad_homepages.squid file which contains regular expressions for a website, so this cache_peer will only be used, if the HOMEPAGE is requested. If a sub page is requested, the second cache_peer(acl ab2) should be used. <br><br>Example: <a href="http://www.test.com">www.test.com</a> -> ab1 should be used </div><div><a href="http://www.test.com/hello">www.test.com/hello</a> -> ab2 should be used. <br><br>The regex in the Bad_Homepages.squid file is following: 
<span style="color:rgb(220,221,222);font-family:Whitney,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;white-space:break-spaces;background-color:rgb(54,57,63)">.<a href="http://whatismyip.com">whatismyip.com</a>($|/$|/?)
</span><br>So, after running and testing, my squid configuration does not work. When visiting the homepage and afterwards a sub page, there is no change in terms of the IP. <br><br>Thank you<br><br></div><div></div></div></div>