Re: [squid-users] custom error msg

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 15 Feb 2009 12:26:09 +1300

Arun Shrimali wrote:
> Dear All,
>
> I am using Squid 3.0 Stable 7 on FC9, with NCSA auth which is working fine.
>
> I have restricted the users (iu) on particular time (2-3 pm and 5-7
> pm) and at this time I want show the custom error. Here is my acl for
> review
>
> acl iu proxy_auth "etc/squid/iu.txt"
>
> acl resonethrs1 time M T W H F A 14:00-15:00
> acl resonethrs2 time M T W H F A 17:00-19:00
>
> deny_info ERR_TIME resonethrs1
> deny_info ERR_TIME resonethrs2
> http_access allow iu !resonethrs1 !resonethrs2
>
> but instead of custom error user is getting standard error.
>
> Can any body help me how to configure the custom error.
>
> regards
>
> Arun

* First the http_access is not performing a denial.

  - line matches and clients are ALLOWED through (no error page displayed)
  - line does not match, squid will keep looking elsewhere for a reason
to deny or allow (again no error page displayed).

Try this:
   acl resonethrs time M T W H F A 14:00-15:00
   acl resonethrs time M T W H F A 17:00-19:00
   deny_info ERR_TIME resonethrs
   http_access allow iu resonethrs

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
   Current Beta Squid 3.1.0.5
Received on Sat Feb 14 2009 - 23:25:59 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 17 2009 - 12:00:02 MST