When I was importing real estate structure today, since there can only be one import for a community, before the previous request failed to respond, another request would prompt "There is an import being processed", but when the amount of data is large, At this time, a request will also have this prompt and go through the omnipotent Baidu. It is found that nginx will forward the timeout request to another server. The current solution is to fully match the imported URL and set the request time longer
location = /psms/ps/cost_info !importInfo.action { proxy_pass proxy_redirect proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_read_timeout 7200; This is an original article by the blogger and may not be reproduced without the blogger's permission. The above introduces the problem of nginx timeout forwarding request, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.