How to handle NGINX Server Load balancer 404 errors in Linux

Source: Internet
Author: User


Use NGINX to achieve load balancing, but the data of a group of servers is not synchronized. It takes some time for the master server to synchronize data to other servers before upstream image.stream.com {server 192.168.1.25: 8088; server 192.168.1.24: 8088; server 192.168.1.23: 8088;} when the user www.2cto.com accesses the image, there is a 60% probability that the file cannot be found. question: How to configure it to the following functions: 1. when I connect to the image server, if the browsing machine is unavailable on the 24th and 23th, I will select another 25 by default?
Solution:
Proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
This article is from the guest Network Customer Alliance

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.