[squid-users] Custom error message when authentication fails

From: warren, anthony <anthony.warren@dont-contact.us>
Date: Fri, 17 Jan 2003 15:40:49 -0000

Hi,

I am trying to configure a custom error page to be shown when authentication
fails. I have successfully created a custom error that is used with a deny
acl, but I cannot get it to work after authentication failure.

Is this possible, if so how?

I have included my squid.conf for reference. We are using 2.5 Stable 1

Regards,

Anthony

-------------------------------
Anthony Warren
Medway Council
T: 44 (0)1634 338003
F: 44 (0)1634 332881
E: anthony.warren@medway.gov.uk
-------------------------------

 

debug_options ALL,1 33,2 28,2 28,9
http_port 8080
auth_param basic program /usr/local/squid/libexec/ncsa_auth
/usr/local/squid/etc/passwd
auth_param basic children 5
auth_param basic realm Restricted Access Area
auth_param basic credentialsttl 2 hour
hierarchy_stoplist cgi-bin ?
# no_cache deny QUERY
cache_mem 64 MB
maximum_object_size 250000 KB
cache_dir ufs /opt/cache 2000 16 256
cache_access_log /opt/logs/access.log
cache_log /opt/logs/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
ftp_user ftp@medway.gov.uk
quick_abort_min 50 KB
quick_abort_max 1024 KB
quick_abort_pct 90
# positive_dns_ttl 8 hours
# negative_dns_ttl 30 minutes
acl QUERY urlpath_regex cgi-bin \?
acl exe urlpath_regex \.exe$
deny_info ERR_DOWNLOAD_DENIED exe
acl mp3 urlpath_regex \.mp3$
deny_info ERR_DOWNLOAD_DENIED.html mp3
acl all src 0.0.0.0/0.0.0.0
acl passwd proxy_auth
acl localhost src 127.0.0.1/255.255.255.255
# acl msnmsgr dst 64.4.13.0/255.255.255.0
# acl msnmsgr2 dst 207.46.106.0/255.255.255.0
acl msnmsgrdomain dstdomain .msgr.hotmail.com
acl snmppublic snmp_community public
acl snmpc src 172.25.50.20/255.255.255.255
acl mrtg src 172.25.1.15/255.255.255.255
# http_access deny msnmsgr
# http_access deny msnmsgr2
http_access deny msnmsgrdomain
http_access deny mp3
http_access allow exe passwd
http_access allow all
#
icp_access allow all
cache_mgr helpdesk@medway.gov.uk
cache_effective_user squid
cache_effective_group squid
visible_hostname proxy.medway.gov.uk
# store_avg_object_size 13 KB
snmp_port 3401
snmp_access allow snmppublic mrtg snmpc
snmp_access allow all
Received on Fri Jan 17 2003 - 08:41:23 MST

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