Php mod_security and";连接:关闭“;
我们有一个应用程序需要关闭连接并重定向到另一个页面。这适用于以下代码:Php mod_security and";连接:关闭“;,php,apache,mod-security,Php,Apache,Mod Security,我们有一个应用程序需要关闭连接并重定向到另一个页面。这适用于以下代码: header("Connection: close\r\n"); header("Content-Encoding: none\r\n"); ignore_user_abort(true); ob_start(); $size = ob_get_length(); //Redirect header("Location: $domain", true, 303); header("Content-Length: $size"
header("Connection: close\r\n");
header("Content-Encoding: none\r\n");
ignore_user_abort(true);
ob_start();
$size = ob_get_length();
//Redirect
header("Location: $domain", true, 303);
header("Content-Length: $size");
ob_end_flush();
flush();
我们在服务器上使用mod_安全性,一旦激活,它就不再关闭连接。审核日志不包含条目
禁用mod_security或将SecResponseBodyAccess
设置为Off
将重新启用该功能
是否有mod_安全选项或PHP方法使SecResponseBodyAccess
保持打开状态,并且仍然能够关闭连接