From: hno <> Date: Tue, 2 Apr 2002 18:38:02 +0000 (+0000) Subject: New deny_info capabilities to redirect to another server X-Git-Tag: SQUID_3_0_PRE1~1134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76cdc28d68e85e0f707ff848fd2447d03fe8b668;p=thirdparty%2Fsquid.git New deny_info capabilities to redirect to another server deny_info http://www.example.com/ acl1 acl2 ... deny_info TCP_RESET acl3 acl4 ... --- diff --git a/src/cf.data.pre b/src/cf.data.pre index b2fc4ee951..c39d7918a0 100644 --- a/src/cf.data.pre +++ b/src/cf.data.pre @@ -1,6 +1,6 @@ # -# $Id: cf.data.pre,v 1.250 2002/02/25 03:11:04 adrian Exp $ +# $Id: cf.data.pre,v 1.251 2002/04/02 11:38:02 hno Exp $ # # # SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -2526,6 +2526,7 @@ LOC: Config.denyInfoList 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 @@ DOC_START 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 diff --git a/src/enums.h b/src/enums.h index 1bf29fafe5..640e952811 100644 --- a/src/enums.h +++ b/src/enums.h @@ -1,6 +1,6 @@ /* - * $Id: enums.h,v 1.205 2002/02/26 15:48:14 adrian Exp $ + * $Id: enums.h,v 1.206 2002/04/02 11:38:03 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -92,6 +92,7 @@ typedef enum { ERR_FTP_UNAVAILABLE, ERR_ONLY_IF_CACHED_MISS, /* failure to satisfy only-if-cached request */ ERR_TOO_BIG, + TCP_RESET, ERR_MAX } err_type; @@ -724,12 +725,12 @@ enum { * Store digest state enum */ typedef enum { - DIGEST_READ_NONE, - DIGEST_READ_REPLY, - DIGEST_READ_HEADERS, - DIGEST_READ_CBLOCK, - DIGEST_READ_MASK, - DIGEST_READ_DONE + DIGEST_READ_NONE, + DIGEST_READ_REPLY, + DIGEST_READ_HEADERS, + DIGEST_READ_CBLOCK, + DIGEST_READ_MASK, + DIGEST_READ_DONE } digest_read_state_t; /* CygWin & Windows NT Port */ diff --git a/src/errorpage.cc b/src/errorpage.cc index 757f43ab2c..69ca4266e1 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.169 2002/04/01 06:02:15 wessels Exp $ + * $Id: errorpage.cc,v 1.170 2002/04/02 11:38:03 hno Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -67,6 +67,10 @@ static const struct { "