Apache从smb安装目录提供不完整的响应

我在一个虚拟机(debian lenny,up2date)里面运行“Apache / 2.2.9(Debian)PHP / 5.2.6-1 + lenny3 with Suhosin-Patch”,其中约60%的http响应被服务“不完整“时从smb安装目录(即从vm主机)提供请求。

我的问题是,我看不到任何模式,当失败的时候,因为他们的旋转types。 但是我能看到的是,像jQuery UI的一些请求总是被截断在相同的位置(JavaScript控制台报告语法错误)。

这是不完整的响应的示例标题:

Date Fri, 04 Sep 2009 21:09:38 GMT Server Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch Last-Modified Sat, 20 Jun 2009 11:53:52 GMT Etag "1810-2f074-46cc64b731400" Accept-Ranges bytes Content-Length 192628 Connection close Content-Type application/javascript 

启用apache2 mods:

 alias.conf authz_user.load dir.load php5.load alias.load autoindex.conf env.load rewrite.load auth_basic.load autoindex.load mime.conf setenvif.conf authn_file.load cgi.load mime.load setenvif.load authz_default.load deflate.conf negotiation.conf status.conf authz_groupfile.load deflate.load negotiation.load status.load authz_host.load dir.conf php5.conf 

只有.js和.png文件在我的特定项目中受到影响。 “主要要求”总是加载正常。

更新: apache2ctl -m输出:

 Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_prefork_module (static) http_module (static) so_module (static) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) mime_module (shared) negotiation_module (shared) php5_module (shared) rewrite_module (shared) setenvif_module (shared) status_module (shared) Syntax OK 

我在从SMB或CIFS安装的共享文件中看到了这一点。 尝试使用以下命令closuressendfile支持:

 EnableSendfile Off 

您可以在主服务器configuration, .htacces文件或vhost /目录块中执行此操作。

那么,我从一个安装的Windows smb共享文件切换到本地目录,现在工作正常。 我没有时间进一步调查,但我认为这个问题与apache本身没有关系。