V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Menci
V2EX  ›  Microsoft Azure

Azure Function 出现间歇性 Nginx 404 错误

  •  
  •   Menci · 2021-03-06 21:13:59 +08:00 · 1327 次点击
    这是一个创建于 1139 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    image.png

    Azure 的诊断给出的 Log 里看不到任何错误:

    image.png

    Azure 无法新建支持请求,我就只好来 V2EX 了。

    image.png

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3496 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:46 · PVG 12:46 · LAX 21:46 · JFK 00:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.