Re: [squid-users] deny_info not working

From: Hement Gopal <hementg@dont-contact.us>
Date: Wed, 10 May 2006 16:54:21 +0200

Hi Christoph

You're a star!!!!!!!!!!!

Its working after I changed the acl to workdays.

Many thanks

Rgds,
Hement

-----Original Message-----
From: Christoph Haas [mailto:email@christoph-haas.de]
Sent: 10 May 2006 04:45 PM
To: squid-users@squid-cache.org
Subject: Re: [squid-users] deny_info not working

On Wed, May 10, 2006 at 04:40:46PM +0200, Hement Gopal wrote:
> I am trying to use a custom error page for my clients but cannot get
> it to work. I have restricted the downloads of certain file types
> during office hours using :
>
> acl files url_regex -i "/usr/local/squid/etc/banned-files.txt"
> deny_info ERR_BANNED_FILES.htm files
> http_access deny files workdays

The deny_info always refers to the last ACL in a "http_access deny" line.
(See also: http://workaround.org/moin/HowSquidAclsWork -> Custom error
pages)

So if you deny on 'workdays' the deny_info must be:

deny_info ERR_BANNED_FILES.htm workdays

Or alternatively you change the order in the http_access line:

http_access deny workdays files

Kindly
 Christoph
Received on Wed May 10 2006 - 08:54:29 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT