Home >Backend Development >PHP Tutorial >Two nginx servers, php execution time problem
There are currently two servers, one of which has a newly developed program, and the other one does not have a newly developed program. After entering the link in the browser, connect to the server with the code, and the browser processes the status of waiting for the result to be returned. A 404 error appears in the browser after 30 seconds. An unlimited timeout has been set in the php script, and the timeout for nginx is 5 minutes. It is suspected that it automatically connects to a server without new programs after 30 seconds. Please tell me how to solve this problem.
There are currently two servers, one of which has a newly developed program, and the other one does not have a newly developed program. After entering the link in the browser, connect to the server with the code, and the browser processes the status of waiting for the result to be returned. A 404 error appears in the browser after 30 seconds. An unlimited timeout has been set in the php script, and the timeout for nginx is 5 minutes. It is suspected that it automatically connects to a server without new programs after 30 seconds. Please tell me how to solve this problem.
I think in this case you should check the logs first
Check the access
log of nginx
to see which server your request corresponds to.
View the request timeout of php
, nginx
, php-fpm/php-cgi
,
For this kind of problem, check the log file as mentioned above, check the access and error logs to see what happened. . Or is it something about the firewall, etc.