如果是因为网络层或应用层错误导致的代理服务器无法连接OCS(Origin Content Server),ProxySG会给客户端返回一个报错页面,显示TCP Error或Gateway Error,这种情况因为非配置或代理服务器自身的错误,所以不必让用户知道,仅让浏览器自己返回报错即可,在ProxySG的CPL中可写入以下代码
<Exception>
exception.id="tcp_error" terminate_connection(yes)
exception.id="dns_unresolved_hostname" terminate_connection(yes)
exception.id= "gateway_error" terminate_connection(yes)