Azure Function 出现间歇性 Nginx 404 错误

2021-03-06 21:13:59 +08:00
 Menci

今天下午开始,网站的部分用户开始反馈打开网站看到了 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 了。

1399 次点击
所在节点    Microsoft Azure
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/759138

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX