Re: [squid-users] deny_info does not appear to work

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 23 May 2001 18:58:50 +0200

Matthew Seddon wrote:

> deny_info ERR_BADLANG_ACCESS_DENIED forbidden-badlang
> deny_info ERR_PORN_ACCESS_DENIED forbidden-porn
> deny_info ERR_PIRATE_ACCESS_DENIED forbidden-pirate
>
> acl forbidden-badlang url_regex -i "/file"
> acl forbidden-porn url_regex -i "/file"
> acl forbidden-pirate url_regex -i "/file"
> acl allowed-badlang url_regex -i "/file"
> acl allowed-porn url_regex -i "/file"
> acl allowed-pirate url_regex -i "/file"
>
> http_access deny forbidden-badlang !allowed-badlang
> http_access deny forbidden-porn !allowed-porn
> http_access deny forbidden-pirate !allowed-pirate

You need to switch the order of the ACL's on the http_access line.
deny_info looks for the last ACL name on http_access lines.

--
Henrik Nordstrom
Received on Wed May 23 2001 - 11:23:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:15 MST