请大佬帮忙看看, 我打算搞个小博客,细雨社 偶尔能正常访问,偶尔抽风404。
一、奇怪现象如下:
1、使用IP+端口能访问,说明网站本身服务正常 http://39.96.179.121:8080/
2、使用域名xiyu.love时,网站要么彻底访问不了,换浏览器、换手机网络测试都不行,要么轮流抽风
3、电脑浏览器edge 138版本能访问时,手机浏览器就打不开(电脑、手机都在同一个路由器下)
下图为究极混乱版本,就是同一时间、同网络下,使用域名访问时,电脑浏览器、无痕模式、手机浏览器这三者中,至少有一个是打不开的。电脑浏览器如果能打开,手机就能打不开、切换到流量也一样。
过个十几分钟(目前测试遇到过的最小间隔)开始轮流抽风,要么net::ERR_CERT_AUTHORITY_INVALID,要么就是404 Not Found。
二、具体配置如下:
买的阿里云2C2G的轻量云服务器,做了如下配置:
1、安装了1panel 2.0.4社区版,然后mysql 8.4.5,然后Halo 2.21.3建站,全用的最新版。
2、在openresty 版本1.27.1.2-2-1-focal 里创建了一键部署的网站,具体配置如下
配置了80端口访问域名
证书是阿里云申请的3个月版本、到10月才到期。
看了论坛帖子,好多说让设置默认站点,但我这实测设了一样抽风,不设时偶尔还能正常访问域名。

在删除证书、去掉网站HTTPS后 ,想重新设置HTTPS、保存默认网站时会报错,按照路径/usr/local/openresty/去找文件时却找不到 ,local下没有openresty文件夹,显示了隐藏文件夹。
三、相关日志
1、openresty
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: start worker processes
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: start worker process 375
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: start worker process 376
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 361#361: gracefully shutting down
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 362#362: gracefully shutting down
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 361#361: exiting
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 362#362: exiting
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: signal 17 (SIGCHLD) received from 361
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: worker process 361 exited with code 0
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: signal 29 (SIGIO) received
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: signal 17 (SIGCHLD) received from 362
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: worker process 362 exited with code 0
1Panel-openresty-43Nq | 2025/07/22 20:00:25 [notice] 1#1: signal 29 (SIGIO) received
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: signal 3 (SIGQUIT) received, shutting down
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 375#375: gracefully shutting down
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 375#375: exiting
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 376#376: gracefully shutting down
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 376#376: exiting
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: signal 17 (SIGCHLD) received from 375
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: worker process 375 exited with code 0
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: worker process 376 exited with code 0
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: exit
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: [lua] config.lua:136: ini_waf_info(): Load 1Panel WAF Version:2.0
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: using the "epoll" event method
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: openresty/1.27.1.21Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: built by gcc 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: OS: Linux 5.10.134-18.al8.x86_64
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: start worker processes
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: start worker process 6
1Panel-openresty-43Nq | 2025/07/22 20:00:36 [notice] 1#1: start worker process 7
2、Halo日志
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T13:45:31.777+08:00 WARN 7 --- [or-http-epoll-2] r.n.http.server.HttpServerOperations : [0ebb3b1e, L:/172.18.0.3:8090 - R:/178.159.37.70:64756]178.159.37.70:64756] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T14:49:27.433+08:00 WARN 7 --- [or-http-epoll-2] r.n.http.server.HttpServerOperations : [fe3ff4b0, L:/172.18.0.3:8090 - R:/43.247.4.40:43530]43.247.4.40:43530] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T16:59:03.329+08:00 WARN 7 --- [or-http-epoll-3] r.n.http.server.HttpServerOperations : [5d246d6a, L:/172.18.0.3:8090 - R:/65.49.1.80:60334]65.49.1.80:60334] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:12:10.962+08:00 WARN 7 --- [or-http-epoll-4] r.n.http.server.HttpServerOperations : [d1ea8035, L:/172.18.0.3:8090 - R:/143.198.32.240:53848]143.198.32.240:53848] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: ÀÀ), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:12:11.587+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [04830f76, L:/172.18.0.3:8090 - R:/143.198.32.240:53864]143.198.32.240:53864] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: ÀÀ), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:27:14.095+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [0d83a666, L:/172.18.0.3:8090 - R:/43.247.4.40:49264]43.247.4.40:49264] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:56:56.932+08:00 WARN 7 --- [or-http-epoll-4] r.n.http.server.HttpServerOperations : [7b82ef43, L:/172.18.0.3:8090 - R:/36.5.188.224:35714]36.5.188.224:35714] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: ÆC¶»¢ÊPee¸§ÌÍ¿¡Ã U), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:56:57.186+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [9710d2b0, L:/172.18.0.3:8090 - R:/36.5.188.224:35716]36.5.188.224:35716] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: Μ FX£Ø;Ú;٠ЧH«¶5M%Y
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:57:35.333+08:00 WARN 7 --- [or-http-epoll-4] r.n.http.server.HttpServerOperations : [a1d4efa8, L:/172.18.0.3:8090 - R:/36.5.188.224:35732]36.5.188.224:35732] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: Illegal character in request line: 0x19), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:57:56.436+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [dba6048a, L:/172.18.0.3:8090 - R:/36.5.188.224:35739]36.5.188.224:35739] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: Illegal character in request line: 0x0), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:58:40.112+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [7d96a086, L:/172.18.0.3:8090 - R:/36.5.188.224:35757]36.5.188.224:35757] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: Illegal character in request line: 0x0), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:58:40.363+08:00 WARN 7 --- [or-http-epoll-2] r.n.http.server.HttpServerOperations : [1c1f2fa3, L:/172.18.0.3:8090 - R:/36.5.188.224:35759]36.5.188.224:35759] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: ÊÊÀ+À/À,À0̨̩ÀÀ/5
::Ÿ3ÏÍÚÚÌÀ³S0SVÙL
R¹ZMVÅÖÊNUØA
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:59:01.227+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [16d530a3, L:/172.18.0.3:8090 - R:/36.5.188.224:35762]36.5.188.224:35762] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: 4ÑÏFËÒP#$}SRZ|Q;NÔ[È À+À/À,À0̨̩ÀÀ/5EJJ XIYU.LOVEŸH2HTTP/1.13ÏÍ**ÌÀÍÚ\ÇA¨:Q(¨Ë÷ÂÕÃJ[ÅÏ)¨.[VIÄ͹Ã4&S3.°GX"'¥Û,`), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T18:59:01.492+08:00 WARN 7 --- [or-http-epoll-2] r.n.http.server.HttpServerOperations : [c61a1cd5, L:/172.18.0.3:8090 - R:/36.5.188.224:35763]36.5.188.224:35763] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: JJÀ+À/À,À0̨̩ÀÀ/5
), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0
1Panel-halo-LIWO | 2025-07-22T20:18:03.874+08:00 WARN 7 --- [or-http-epoll-4] r.n.http.server.HttpServerOperations : [2b2006eb, L:/172.18.0.3:8090 - R:/111.33.154.219:43952]111.33.154.219:43952] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
1Panel-halo-LIWO | GET /bad-request HTTP/1.0