V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ieheiheihei
V2EX  ›  服务器

请教一下关于 nginx 反向代理的 104: Connection reset by peer 错误

  •  
  •   ieheiheihei · Sep 15, 2018 · 6355 views
    This topic created in 2781 days ago, the information mentioned may be changed or developed.
    由于公司有个网站很早之前就备案了,最近阿里云说有什么资料不符,要变更备案信息,公司比较忙,就没怎么在意。谁知道突然备案信息没有了,网站提示未备案。临时买了台香港服务器装了个 ngxin 做反向代理。刚开始都很正常,但是隔一两个小时网页就提示错误,查询 nginx 中的 errorlog 都是 104: Connection reset by peer 错误,重新部署过两次 NGINX 后都会这样。想请教下 V 友有遇到过这种情况的吗?
    10 replies    2018-09-15 21:52:17 +08:00
    alect
        1
    alect  
       Sep 15, 2018
    你反代的源站是在国内?
    ieheiheihei
        2
    ieheiheihei  
    OP
       Sep 15, 2018
    @alect #1 是的
    alect
        3
    alect  
       Sep 15, 2018
    @ieheiheihei 你反代的源站不能用域名形式,或者换端口,要不然还是过不了机房的备案检测
    ieheiheihei
        4
    ieheiheihei  
    OP
       Sep 15, 2018
    @alect #3 域名解析的是香港服务器,反向代理配置的 ip:80
    ieheiheihei
        5
    ieheiheihei  
    OP
       Sep 15, 2018
    @alect #3 而且网页直接访问 ip 可以正常访问
    alect
        6
    alect  
       Sep 15, 2018
    @ieheiheihei 还可能是因为 nginx 的 buffer 太小,timeout 太小。。
    alect
        7
    alect  
       Sep 15, 2018
    又或者迷之错误(墙)
    ieheiheihei
        8
    ieheiheihei  
    OP
       Sep 15, 2018
    @alect #6 buffer 和 timeout 都改过
    可能吧
    ieheiheihei
        9
    ieheiheihei  
    OP
       Sep 15, 2018
    @alect #7 弄了几个小时都不行
    sparkssssssss
        10
    sparkssssssss  
       Sep 15, 2018
    用非 80 试试?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3745 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 04:41 · PVG 12:41 · LAX 21:41 · JFK 00:41
    ♥ Do have faith in what you're doing.