码迷,mamicode.com
首页 > 其他好文 > 详细

nginx proxy_next_upstream模块 重复提交问题

时间:2018-03-01 11:39:11      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:from   its   off   表示   cti   send   erro   问题   默认   

proxy_next_upstream表示对于后端服务器,出现问题后将会转移到另外一台服务器

proxy_next_upstream

语法: proxy_next_upstream [error|timeout|invalid_header|http_500|http_503|http_404|off]

默认值: proxy_next_upstream error timeout

上下文: http, server, location

Directive determines, in what cases the request will be transmitted to the next server:

  • error ― an error has occurred while connecting to the server, sending a request to it, or reading its response;
  • timeout ― occurred timeout during the connection with the server, transfer the requst or while reading response from the server;
  • invalid_header ― server returned a empty or incorrect answer;
  • http_500 ― server returned answer with code 500
  • http_503 ― server returned answer with code 503
  • http_404 ― server returned answer with code 404
  • off ― it forbids the request transfer to the next server

Transferring the request to the next server is only possible when nothing has been transferred to the client -- that is, if an error or timeout arises in the middle of the transfer of the request, then it is not possible to retry the current request on a different server.

nginx proxy_next_upstream模块 重复提交问题

标签:from   its   off   表示   cti   send   erro   问题   默认   

原文地址:https://www.cnblogs.com/puremans/p/8487165.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!