Search squid archive

Re: custom error msg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux