[squid-users] ACL not displaying Custom Error page

From: Jimbo <jimbo@dont-contact.us>
Date: Tue, 14 Oct 2003 13:25:55 +0100

I have been writing some acls in squid to deny access to various sites
during working hours. It all seems to be working well but I would like
to display a custom error page instead of the standard access denied one.

I have created the page in /etc/squid/errors/ and added the deny_info
line but still get the standard page.

Can anyone shed any light?

acl whitelist dstdomain "/etc/squid/whitelist.allow"
acl worktime_domain dstdomain "/etc/squid/worktime_domain"
acl worktime_ip dst "/etc/squid/worktime_ip"
acl worktime_words url_regex "/etc/squid/worktime_words"
acl qtr1 time 08:30-10:00
acl qtr2 time 10:30-12:00
acl qtr3 time 14:00-15:00
acl qtr4 time 15:30-17:00
acl workdays time MTWHF

http_access deny worktime_domain qtr1 workdays !whitelist
http_access deny worktime_ip qtr1 workdays !whitelist
http_access deny worktime_words qtr1 workdays !whitelist

http_access deny block_mail_domain qtr1 workdays !whitelist
http_access deny block_mail_ip qtr1 workdays !whitelist
http_access deny block_mail_words qtr1 workdays !whitelist

http_access deny block_audio-video_domain qtr1 workdays !whitelist
http_access deny block_audio-video_ip qtr1 workdays !whitelist
http_access deny block_audio-video_words qtr1 workdays !whitelist

http_access deny worktime_domain qtr2 workdays !whitelist
http_access deny worktime_ip qtr2 workdays !whitelist
http_access deny worktime_words qtr2 workdays !whitelist

http_access deny block_mail_domain qtr2 workdays !whitelist
http_access deny block_mail_ip qtr2 workdays !whitelist
http_access deny block_mail_words qtr2 workdays !whitelist

http_access deny block_audio-video_domain qtr2 workdays !whitelist
http_access deny block_audio-video_ip qtr2 workdays !whitelist
http_access deny block_audio-video_words qtr2 workdays !whitelist

http_access deny worktime_domain qtr3 workdays !whitelist
http_access deny worktime_ip qtr3 workdays !whitelist
http_access deny worktime_words qtr3 workdays !whitelist

%*----------*%
Do not meddle in the affairs of cats, for they are subtle and will whiz
on your computer.
*%----------%*
http_access deny block_mail_domain qtr3 workdays !whitelist
http_access deny block_mail_ip qtr3 workdays !whitelist
http_access deny block_mail_words qtr3 workdays !whitelist

http_access deny block_audio-video_domain qtr3 workdays !whitelist
http_access deny block_audio-video_ip qtr3 workdays !whitelist
http_access deny block_audio-video_words qtr3 workdays !whitelist

http_access deny worktime_domain qtr4 workdays !whitelist
http_access deny worktime_ip qtr4 workdays !whitelist
http_access deny worktime_words qtr4 workdays !whitelist

http_access deny block_mail_domain qtr4 workdays !whitelist
http_access deny block_mail_ip qtr4 workdays !whitelist
http_access deny block_mail_words qtr4 workdays !whitelist

http_access deny block_audio-video_domain qtr4 workdays !whitelist
http_access deny block_audio-video_ip qtr4 workdays !whitelist
http_access deny block_audio-video_words qtr4 workdays !whitelist

http_access allow worktime_domain worktime_ip worktime_words
deny_info ERR_CUST_WORK-TIME worktime_domain worktime_ip worktime_words
deny_info ERR_CUST_WORK-TIME block_mail_domain block_mail_ip
block_mail_words
deny_info ERR_CUST_WORK-TIME block_audio-video_domain
block_audio-video_ip block_audio-video_words

-- 
Cheers
James Pybus
T: 07718 589332
F: 08700 519001
E: jimbo@pybe.co.uk
Received on Tue Oct 14 2003 - 06:26:01 MDT

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