download - apache - 无法下载带有扩展 ascii 字符的文件
问题描述
最近在 debian 上升级了 apache。尝试下载文件名中具有扩展 ASCII 字符的文件时,似乎新版本给出了 400 错误。
旧的 apache 版本 -
[2018 年 4 月 25 日:03:34:34 +0200] “获取 /etmain/\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f \x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f \x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f.pk3 HTTP/1.1" 200 42631 "ET://xxxxx:27960" "ID_DOWNLOAD/2.0 libcurl/7.12.2 "
新的阿帕奇版本 -
[2018 年 4 月 24 日:23:08:52 -0400] “获取 /etmain/\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f \x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f \x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x7f.pk3 HTTP/1.1" 400 0 "-" "-"
同样在新版本中,它似乎没有在访问日志中注册推荐。
新的 apache 版本信息 -
Server version: Apache/2.4.25 (Debian)
Server built: 2018-03-31T08:47:16
Server's Module Magic Number: 20120211:68
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
旧版本信息 -
Server version: Apache/2.4.10 (Debian)
Server built: Sep 15 2016 20:44:43
Server's Module Magic Number: 20120211:37
Server loaded: APR 1.5.1, APR-UTIL 1.5.4
Compiled using: APR 1.5.1, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
感谢任何帮助解决问题。
解决方案
推荐阅读
- delphi - 如何为 delphi 程序启用 UAC?
- sorting - 从最近到最远对点进行排序
- java - 我们如何在 Helidon SE 中使用 REST 和 SOAP 服务
- python - 如何在一段时间内或for循环python中转换汉明数字代码
- logging - 启用使用nestjs登录typeorm
- azure-active-directory - Can I configure the SSO SAML with an App Registration (not Enterprise Application)?
- python - 当我添加 if 条件时,通过 ctypes 在 python 中使用的 C 函数会变慢
- c++ - 我如何通过提供一个在 C++ 中返回其类型的函数来确定基类是什么?
- python - sphinx_rtd_theme 自 1.4.0 版以来不再是硬依赖。即使安装了主题
- php - Yii2 Mpdf - _MPDF_SYSTEM_TTFONTS 升级后不起作用