我有一台装有 Apache2.4 的 Ubuntu 服务器。(Ubuntu 20.04.2 LTS(GNU/Linux 5.4.0-74-generic x86_64))
我将 Apache 从 2.4.46 更新到 2.4.48,除通过 HTTPS 下载 .bin 文件外,我测试的其他一切都正常运行。我的设备开始下载文件,但甚至无法下载文件的第一个数据包,并且显示“对等端已关闭连接”。
下载 .bin 文件之前曾与 Apache 2.4.46 一起使用。
apache2ctl -S
VirtualHost configuration:
*:443 is a NameVirtualHost
default server ************** (/etc/apache2/sites-enabled/default-ssl.conf:2)
port 443 namevhost ************** (/etc/apache2/sites-enabled/default-ssl.conf:2)
alias www.**************
port 443 namevhost ********** (/etc/apache2/sites-enabled/default-ssl.conf:140)
alias www.**********
*:80 is a NameVirtualHost
default server ********** (/etc/apache2/sites-enabled/**********.conf:1)
port 80 namevhost ********** (/etc/apache2/sites-enabled/**********.conf:1)
alias www.**********
port 80 namevhost ************** (/etc/apache2/sites-enabled/**************.conf:1)
alias www.**************
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
服务器日志:
ssl_engine_kernel.c(422): AH02034: Initial (No.1) HTTPS request received for child 3 (server **************:443)
http_request.c(436): Headers received from client:
http_request.c(440): Host: **************
http_request.c(440): Range: bytes=0-2047
http_request.c(440): Connection: keep-alive
mod_authz_core.c(818): AH01626: authorization result of Require all granted: granted
mod_authz_core.c(818): AH01626: authorization result of <RequireAny>: granted
request.c(312): request authorized without authentication by access_checker_ex hook: /**********/*****/file.bin
mod_headers.c(866): AH01502: headers: ap_headers_output_filter()
byterange_filter.c(296): AH01583: Range: 0-2047 | 0-2047 (0 : 0 : 252692)
http_filters.c(1129): Response sent with status 206, headers:
http_filters.c(958): X-Frame-Options: DENY
http_filters.c(958): X-Content-Type-Options: nosniff
http_filters.c(958): Last-Modified: Thu, 10 Jun 2021 13:00:07 GMT
http_filters.c(958): ETag: \\"*****-**************\\"
http_filters.c(958): Accept-Ranges: bytes
http_filters.c(958): Content-Length: 2048
http_filters.c(958): Content-Range: bytes 0-2047/252692
http_filters.c(958): Keep-Alive: timeout=10, max=100
http_filters.c(958): Connection: Keep-Alive
http_filters.c(958): Content-Type: application/octet-stream
ssl_engine_io.c(1760): coalesce: have 0 bytes, adding 409 more (buckets=1)
ssl_engine_io.c(1760): coalesce: have 409 bytes, adding 2048 more (buckets=1)
ssl_engine_io.c(1821): coalesce: passing on 2457 bytes
ssl_engine_io.c(2310): OpenSSL: write 2517/2517 bytes to BIO#560760e4dc80 [mem: 560760e52493]
ssl_engine_io.c(2319): OpenSSL: I/O error, 5 bytes expected to read on BIO#560760e48400 [mem: 560760e52493]
ssl_engine_io.c(2310): OpenSSL: read 5/5 bytes from BIO#560760e48400 [mem: 560760e52493]
ssl_engine_io.c(2310): OpenSSL: read 64/64 bytes from BIO#560760e48400 [mem: 560760e52498]
ssl_engine_kernel.c(2218): OpenSSL: Read: SSL negotiation finished successfully
ssl_engine_io.c(2310): OpenSSL: write 69/69 bytes to BIO#560760e4dc80 [mem: 560760e5c493]
core_filters.c(542): (104)Connection reset by peer: core_output_filter: writing data to the network
ssl_engine_kernel.c(2223): OpenSSL: Write: SSL negotiation finished successfully
ssl_engine_io.c(1115): AH02001: Connection closed to child 3 with standard shutdown (server **************:443)
我尝试了很多方法来解决这个问题,但都没有奏效。我想知道这些 Apache 版本之间发生了什么变化,可能导致了这个问题。我希望有人能帮我解决这个问题,或者知道我应该尝试什么。