nginx的默认超时是60s, 需要修改配置如下:
proxy_read_timeout 120s;
Put that inside your proxy section.
The default is apparently 60s so try doubling and go from there.
Not too confident about it but i had something similar with a timeout in mysql today on a server at work and doubling that worked. Worth a try and hope it helps.
来源: https://stackoverflow.com/questions/31706001/nginx-increase-timeout-to-prevent-404-not-found-error/31711008