Search squid archive

Re: Fwd: Url redirection to ip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok Henrik explain this to me please I now got it working on 2.7 squid

So if i hit repairdata.php it goes to my uatbox
     if i hit index.htm it goes to admin
     if I hit just main url it goes to mybox

What confuses me is the last line below
if i change the last line to say :
cache_peer_access mybox allow uat then it fails on mybox requests
if i change it back to deny its fine? what exactly does this mean and
do for that matter? somehow im guessing its related to denial of
anything other then uat ? if thats right then why wouldnt i state
deny uat, foo so it would denial of both?



cache_peer 10.108.3.22 parent 80 0 no-query originserver name=mybox
cache_peer 10.108.111.6 parent 80 0 no-query originserver name=admin
cache_peer 10.108.50.33 parent 80 0 no-query originserver name=uatbox

acl foo urlpath_regex ^/index.htm
acl uat urlpath_regex ^/repairdata.php

cache_peer_access uatbox allow uat
cache_peer_access admin allow foo
cache_peer_access mybox deny uat







On Wed, Jul 16, 2008 at 3:50 PM, Henrik Nordstrom
<henrik@xxxxxxxxxxxxxxxxxxx> wrote:
> On ons, 2008-07-16 at 15:16 -0400, jason bronson wrote:
>> im using this
>>
>>    1567 acl new urlpath_regex ^/data.php
>>    1568 acl test urlpath_regex ^/data_dev.php
>>    1569
>>    1570 cache_peer_access 10.108.50.32 allow test
>>    1571 cache_peer_access 10.108.50.33 allow new
>>    1572
>>    1573
>>    1574 cache_peer 10.108.50.33  parent  80  0  name=uat no-query
>> no-digest originserver
>>    1575 cache_peer 10.108.50.32  parent  80  0  name=test  no-query
>> no-digest originserver
>>
>>
>> yet on config reload I get
>>  No cache_peer '10.108.50.33'
>>  No cache_peer '10.108.50.32'
>
>
> Order is important. cache_peer_access needst to go after cache_peer.
> Additionally it refers to the peer name, not the host..
>
> cache_peer 10.108.50.33  parent  80  0  name=uat no-query no-digest originserver
> cache_peer_access uat allow new
>
> cache_peer 10.108.50.32  parent  80  0  name=test  no-query no-digest originserver
> cache_peer_access test allow test
>
>
> Regards
> Henrik
>
>



-- 
Thanks

Contact Information

skype: jbronson_ny
yahoo: advancedonsite
aim: advancedonsite
msn: advancedonsite@xxxxxxxxxxx
phone: 518-791-2697
home: 518-886-8012
JasonBronson@xxxxxxxxx
Web Designer and Programmer
Computer Hardware Repair and More

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux