Home > Backend Development > PHP Tutorial > nginx timeout forwarding request problem

nginx timeout forwarding request problem

WBOY
Release: 2016-07-29 09:16:13
Original
2097 people have browsed it

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.
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template