今天下午开始,网站的部分用户开始反馈打开网站看到了 Nginx 的 404 错误页面。
错误是间歇性的,不同用户(不同源 IP )的状况不一样。
我这里也复现了一次:
* Trying 13.75.115.40...
* Connected to loj.ac (13.75.115.40) port 443 (#1)
* found 138 certificates in /etc/ssl/certs/ca-certificates.crt
* found 557 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: menci.moe (matched)
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject: CN=menci.moe
* start date: Sun, 20 Dec 2020 04:56:12 GMT
* expire date: Sat, 20 Mar 2021 04:56:12 GMT
* issuer: C=US,O=Let's Encrypt,CN=R3
* compression: NULL
* ALPN, server did not agree to a protocol
> GET / HTTP/1.1
> Host: loj.ac
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Length: 162
< Content-Type: text/html
< Server: nginx
< Date: Sat, 06 Mar 2021 12:55:56 GMT
<
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #1 to host loj.ac left intact
我十分确定我的 Function App 在 GET 请求时不会返回 status 404 。并且我在 Function 里将所有 URL (包括根)都 Proxy 到了我定义的 Endpoint 上,不存在无效 URL 的问题。
MTR 和 HTTPS 证书都没有问题,排除网络路由的问题。
这是 Function App 的基本信息:
Azure 的诊断给出的 Log 里看不到任何错误:
Azure 无法新建支持请求,我就只好来 V2EX 了。