[squid-users] rep_header not working
Omid Kosari
omidkosari at yahoo.com
Tue Jul 19 05:48:28 UTC 2016
Amos Jeffries wrote
> On 19/07/2016 2:42 a.m., Omid Kosari wrote:
>> Hello,
>>
>> It seems rep_header does not work at all.
>>
>> acl mshit rep_header X-SHMSCDN .
>> acl mshit rep_header Content-Type -i text\/html
>> acl html rep_header Content-Type -i ^text\/html
>> acl apache rep_header Server ^Apache
>> debug_options 28,3
>>
>
> If thats all you put in the config, theres nothing telling Squid when to
> use the ACL.
>
> PS. the other thread where you posted better details of the problem and
> config has already been answered, so I wont repeat the details here.
>
> Amos
>
> _______________________________________________
> squid-users mailing list
> squid-users at .squid-cache
> http://lists.squid-cache.org/listinfo/squid-users
I thought acl should match even if nothing to do with it . ok .
now
#acl mshit rep_header X-SHMSCDN HIT
#acl mshit rep_header X-SHMSCDN .
acl mshit rep_header X-Shmscdn -i HIT
acl testip src 192.168.1.10
http_access deny testip mshit
Maybe the problem is "any of the known reply headers" as Eliezer mentioned
in other thread . If so what is the meaning of known (please refer me to
source file in squid to not ask more questions about it :) ) ? Also is there
a way to work with unknown headers ?
Thanks
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/rep-header-not-working-tp4678561p4678573.html
Sent from the Squid - Users mailing list archive at Nabble.com.
More information about the squid-users
mailing list