![wordpress nginx gateway timeout wordpress nginx gateway timeout](https://image.slidesharecdn.com/howtofix504gatewaytimeouterroronyour-200106182254/95/how-to-fix-504-gateway-timeout-error-on-your-wordpress-website-10-638.jpg)
WORDPRESS NGINX GATEWAY TIMEOUT CODE
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for Īccess_log/var/log/nginx/ main įrom the error code can be basically determined to be independent of the nginx itself, mainly submitted to the php-fpm of the request is not the correct feedback resulting, in general, when the dynamic request, Nginx will directly transfer the request to PHP-FPM, and PHP-FPM php-cgi process to deal with the relevant requests, and then return in turn, and finally by nginx the results back to the client browser, but I this VPS is currently running a pure PHP application content, in fact, all users of the request are PHP requests, some time-consuming, The php-cgi process is always full, and PHP-FPM's own configuration file only opens up to 10 groups of php-cgi processes, so that a little more online users can cause the request to fail properly.
![wordpress nginx gateway timeout wordpress nginx gateway timeout](https://image.slidesharecdn.com/howtofix504gatewaytimeouterroronyour-200106182254/95/how-to-fix-504-gateway-timeout-error-on-your-wordpress-website-3-638.jpg)
Proxy_set_header X-real-ip $remote _addr
![wordpress nginx gateway timeout wordpress nginx gateway timeout](https://asdqwe.net/wp-content/uploads/2016/04/504.jpg)
If you use a nginx agent, you can add it in the Block: See if the time meets the requirements, three parameters in the nfig: If it is not optimized, you can increase the Nginx timeout time. Recently in the work, the need to do Excel import function, because of the Excel data is more, and our server program needs to check the content of the data, will call a lot of external service interface, so no suspense import Excel interface call more than a minute, and error: 504 Gateway Timeout Here are two ways to solve this problem:Īn interface called for more than a minute, there must be a place to optimize, to see whether the database or interface calls are reasonable, whether the request can be merged. Nginx Newspaper 504 Gateway Timeout error caused, one is the file configuration problem, the other is related to the length of processing, and finally there may be insufficient resources, the following we look at. Root /home/tony/public_html/vectordiary.Reprint article Source: (if invasion delete) Here is my nginx config file: user www-data Request: "GET /feed/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "2 05:07:46 32732#0: *389 FastCGI sent in stderr: "ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '125.166.47.106', file '/home/tony/public_html//public/wp-content/plugins/wishlist-member/core/PluginMethods.php(111) : eval()'d code(3) : eval()'d code', line 94)" while reading response header from upstream, client: 125.166.47.106, server: request: "POST /wp-admin/admin.php?page=WishListMember&wl=members&mode=broadcast HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "referrer: " wl=members&mode=broadcast" Request: "GET /feed/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "2 05:07:46 32732#0: *389 FastCGI sent in stderr: "ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '125.166.47.106', file '/home/tony/public_html//public/wp-content/plugins/wishlist-member/core/PluginMethods.php(111) : eval()'d code(3) : eval()'d code', line 94)" while reading response header from upstream, client: 125.166.47.106, server: request: "POST /wp-admin/admin.php?page=WishListMember&wl=members&mode=broadcast HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "referrer: "" Description I found this in the error.log.