[squid-users] How to use access.log codes in custom error page

Amos Jeffries squid3 at treenet.co.nz
Mon Mar 2 11:09:05 UTC 2015


On 2/03/2015 11:56 p.m., Yuri Voinov wrote:
> But Amos,
> 
> wait:
> 
> root @ cthulhu / # /usr/local/squid/bin/squidclient -p 3127 -r 
> http://www.eicar.org/download/eicar_com.zip Sending HTTP request
> ... done. HTTP/1.1 301 Moved Permanently Date: Mon, 02 Mar 2015
> 10:55:55 GMT Location: 
> http://cthulhu.localdomain:8080/cgi-bin/clwarn.cgi.ru_RU?url=http://www.eicar.org/download/eicar_com.zip&source=127.0.0.1&user=-&virus=stream:
>
> 
Eicar-Test-Signature FOUND
> Server: C-ICAP Content-Type: text/html Content-Language: en 
> X-Virus-ID: Eicar-Test-Signature X-Infection-Found: Type=0;
> Resolution=2; Threat=Eicar-Test-Signature; Via: ICAP/1.0 cthulhu
> (C-ICAP/0.3.5 SquidClamav/Antivirus service ) X-Cache: MISS from
> cthulhu X-Cache-Lookup: MISS from cthulhu:3127 Connection: close
> 
> How ICAP does it?

ICAP has full access to the HTTP messages and payloads.

Error page generator ... does not.

Amos


More information about the squid-users mailing list