Re: [squid-users] deny_info not working

From: Christoph Haas <email@dont-contact.us>
Date: Wed, 10 May 2006 16:44:56 +0200

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:45:01 MDT

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