Re: [squid-users] error pages on acl deny

From: Christoph Haas <email@dont-contact.us>
Date: Wed, 26 Oct 2005 13:03:19 +0200

On Wednesday 26 October 2005 11:36, Metal Gear wrote:
> hi guys i am now using the following acls i.e. i want different error
> pages for different acls but i m always having a same error pages i.e.
> of 'ERR_ACCESS_DENIED'. i think its priority is higher than the
> second one.
>
> acl blockedsites url_regex "/usr/local/squid/etc/sites/block"
> http_access deny blockedsites mydomain
> deny_info ERR_ACCESS_DENIED blockedsites mydomain
>
> acl browserblocker browser -i 1.0.7
> http_access deny !browserblocker mydomain
> deny_info ERR_OLD_BROWSER_DENIED !browserblocker mydomain
>
> http_access allow mydomain
>
> how will i get the different error page?

You need to define the deny_info before you use it in http_access.
Just swap the lines.

 Christoph

-- 
~
~
".signature" [Modified] 1 line --100%--                1,48         All
Received on Wed Oct 26 2005 - 05:03:02 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:05 MST