Home > other >  Nginx do load balancing, is there any way to meet 404 is to skip it?
Nginx do load balancing, is there any way to meet 404 is to skip it?

Time:09-22

Application scenario is that the back-end there are a lot of servers, each server files on different, can pass a LB, realize the request, if the file does not exist, return 404, will, in turn, all the back-end server check, until you find relevant documents for this?

 upstream moviebox {
Server 192.168.10.72:80 fail_timeout=1 s max_fails=1;
Server 192.168.10.133:80 fail_timeout=1 s max_fails=1;
}



CodePudding user response:

Proxy_next_upstream http_502 http_504 http_404 error timeout invalid_header;

Add this one, the perfect solution,

CodePudding user response:

I didn't do this, but congratulations has solved!
  • Related