ProxySG 消除TCP-IP报错页面

  如果是因为网络层或应用层错误导致的代理服务器无法连接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)

猜你喜欢

转载自blog.csdn.net/mingrui_89/article/details/78180903