This patch is generated from the deny_info_url-1 branch of HEAD-1 in squid Sun Jan 25 14:43:44 2004 GMT See http://devel.squid-cache.org/ Index: squid/src/cf.data.pre diff -u squid/src/cf.data.pre:1.54 squid/src/cf.data.pre:1.43.4.5 --- squid/src/cf.data.pre:1.54 Sun Feb 24 19:15:33 2002 +++ squid/src/cf.data.pre Mon Apr 1 14:11:12 2002 @@ -2526,6 +2526,7 @@ DEFAULT: none DOC_START Usage: deny_info err_page_name acl + or deny_info http://... acl Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys This can be used to return a ERR_ page for requests which @@ -2535,6 +2536,13 @@ You may use ERR_ pages that come with Squid or create your own pages and put them into the configured errors/ directory. + + Alternatively you can specify an error URL. The browsers will then + get redirected (302) to the specified URL. %s in the redirection + URL will be replaced by the requested URL. + + Alternatively you can tell Squid to reset the TCP connection + by specifying TCP_RESET. DOC_END NAME: memory_pools Index: squid/src/enums.h diff -u squid/src/enums.h:1.31 squid/src/enums.h:1.27.4.3 --- squid/src/enums.h:1.31 Wed Feb 27 01:16:52 2002 +++ squid/src/enums.h Mon Apr 1 14:11:13 2002 @@ -92,6 +92,7 @@ ERR_FTP_UNAVAILABLE, ERR_ONLY_IF_CACHED_MISS, /* failure to satisfy only-if-cached request */ ERR_TOO_BIG, + TCP_RESET, ERR_MAX } err_type; Index: squid/src/errorpage.c diff -u squid/src/errorpage.c:1.17 squid/src/errorpage.c:1.15.4.4 --- squid/src/errorpage.c:1.17 Mon Apr 1 02:17:02 2002 +++ squid/src/errorpage.c Mon Apr 1 15:13:48 2002 @@ -67,6 +67,10 @@ "