[squid-users] squid+c-icap file download + get_file.pl problem

From: Anuj Singh <anujhere_at_gmail.com>
Date: Wed, 4 Mar 2009 22:13:45 +0530

Hi,

I have squid-2.7.6, dansguadian version 2.10.0.3, and
c-icap-030606_5,1 installed on FreeBSD7.1

c-icap is listening on port 1344
running as user/group cicap

squid is running as user/group squid port 3128 (checks for the virus
by contacting port 1344 from c-icap)

dansguardian is running on port 8080 (connects to the squid port 3128)

Clients are accessing threw port 8080 of proxy server.

I have defined a different path with as follows [file name
/usr/local/etc/c-icap.conf]:
srv_clamav.VirSaveDir /home/i_cap_virsave/www/htdocs/downloads/

To retrive downloads I have changed the parameter of
srv_clamav.VirHTTPServer
"http://fortune/cgi-bin/get_file.pl?usename=%f&remove=1&file="

with
srv_clamav.VirHTTPServer
"http://10.139.7.6/cgi-bin/get_file.pl?usename=%f&remove=1&file="

I copied /usr/ports/www/c-icap/work/c_icap-030606rc1/contrib/get_file.pl
to /usr/local/www/cgi-bin/ directory
started the apache service.

Now the problem which I am facing is with the download of any file
from a client machine, I get redirected to the same file, and I have a
copy of same file on proxy server under
/home/i_cap_virsave/www/htdocs/downloads/ with different names.

Ideally it should download the file, and remove downloaded file from
squid proxies /home/i_cap_virsave/www/htdocs/downloads folder.

what can be the problem? has anyone tried squid+c-icap together?

Thanks
Anuj Singh
Received on Wed Mar 04 2009 - 16:43:49 MST

This archive was generated by hypermail 2.2.0 : Thu Mar 05 2009 - 12:00:02 MST