Re: [squid-users] SARG - deny_info problem

From: Amos Jeffries <squid3@dont-contact.us>
Date: Wed, 27 Feb 2008 16:29:45 +1300 (NZDT)

> eXtremer wrote:
>> Hi all.
>> A few days ago my server died, yesterday I installed and configured
>> again.
>> all fine except one deny_info.
>> Here is my config:
>>
>> acl adv url_regex -i "/etc/squid/deny/banner.block"
>>
>> http_access deny adv
>> deny_info http://192.168.1.50/spam/nospam.gif adv
>>
>> when trying to use the proxy, squid dies sudenly.
>>
>> here is the cache log:
>>
>> 2008/02/20 10:14:52| errorTryLoadText:
>> '/usr/share/squid/errors/http://192.168.1.50/spam/nospam.gif': (2) No
>> such
>> file or dir
>> 2008/02/20 10:14:52| errorTryLoadText:
>> '/etc/squid/errors/http://192.168.1.50/spam/nospam.gif': (2) No such
>> file or
>> directory
>> FATAL: failed to find or read error text file.
>> Squid Cache (Version 2.5.STABLE1): Terminated abnormally.
>>
>>
>> opening http://192.168.1.50/spam/nospam.gif - every thing is fine, I see
>> the
>> icon.
>>
>>
>> Until my proxy server died the deny_info worked fine.
>> What's the problem now ? Waiting for a reply.
>> Thanks in advance.
>>
>
> I would say the problem is imho really simple.
> With deny_info you tell squid which errorpage should be displayed.
>
> And as you can see in the log
> '/etc/squid/errors/http://192.168.1.50/spam/nospam.gif'
> squid tries it.
>
> Making a own errorpage which includes the nospam.gif should solve the
> problem

Or using a version 2.6+ squid which support the deny_info http://...
syntax to pull a remote file.

Amos
Received on Tue Feb 26 2008 - 20:29:49 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:05 MST