Home  >  Article  >  Backend Development  >  nginx upstream timed out 10060 error solution

nginx upstream timed out 10060 error solution

WBOY
WBOYOriginal
2016-08-08 09:31:065784browse

Reducing the reverse proxy connection time can solve this problem.
server {
listen 80;
server_name 127.0.0.1;

#charset koi8-r;

#access_log logs/host.access.log main;

location /{
proxy_pass http://paila;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header
client_body_buffer_size 256k;
proxy_connect_timeout 1;
proxy_send_timeout 30 ;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http _503 http_404;
proxy_max_temp_file_size 128m;
}

The above introduces the solution to the nginx upstream timed out 10060 error, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn