AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 62583
Accepted
Karsten
Karsten
Asked: 2009-09-05 13:17:36 +0800 CST2009-09-05 13:17:36 +0800 CST 2009-09-05 13:17:36 +0800 CST

Apache 提供来自 smb 挂载目录的不完整响应

  • 772

我正在使用 NAT 的虚拟机(debian lenny,up2date)内运行“Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch”,并且大约 60% 的任何 http 响应都得到了服务“为来自 smb 挂载目录(即来自 vm 主机)的请求提供服务时“不完整”。

我的问题是,我看不到任何失败时响应的模式,因为它们会旋转。但我可以看到,像 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 模组:

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
http apache-2.2 server-message-block
  • 2 2 个回答
  • 1628 Views

2 个回答

  • Voted
  1. Best Answer
    markdrayton
    2009-09-06T11:46:42+08:002009-09-06T11:46:42+08:00

    在从 SMB 或 CIFS 挂载的共享中提供文件时,我已经看到了这一点。尝试使用以下命令关闭sendfile支持:

    EnableSendfile Off
    

    您可以在主服务器配置、.htacces文件或虚拟主机/目录块中执行此操作。

    • 4
  2. Karsten
    2009-09-06T02:46:26+08:002009-09-06T02:46:26+08:00

    好吧,我将文件从已安装的 Windows smb-share 切换到本地目录,现在可以正常工作了。我没有时间进一步调查,但我认为问题与 apache 本身无关。

    • 0

相关问题

  • 阿帕奇的替代品

  • 如何强制我的网址始终以 www 开头?

  • IIS 6.0 (Windows Server 2003) 上的 HTTP 压缩

  • 在 Linux Xen VPS 上优化 Apache 和 MySQL

  • mod_rewrite 不转发 GET 参数

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    Windows 中执行反向 DNS 查找的命令行实用程序是什么?

    • 14 个回答
  • Marko Smith

    如何检查 Windows 机器上的端口是否被阻塞?

    • 4 个回答
  • Marko Smith

    我应该打开哪个端口以允许远程桌面?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    kch 如何更改我的私钥密码? 2009-08-06 21:37:57 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve