首页 > 解决方案 > 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)

感谢任何帮助解决问题。

标签: downloaddebianapache2.4extended-ascii

解决方案


推荐阅读