tl; dr- WordPress . , , NGINX 504 GATEWAY TIMEOUT.
: , .
1. WordPress, ,
4 , 110: Connection timed out . WordPress. . fastcgi_read_timeout 240;. , , , 10 , 600.
. . NGINX WordPress, DDoSed, .
, NGINX 504 GATEWAY TIMEOUT. , ...
2. POST
error_page NGINX . GET HEAD, POST, NGINX / . NGINX. ( , PUT DELETE.)
, , @error_page, POST, :
If there is no need to change URI and method during internal redirection it is possible to pass error processing into a named location.
, error_page 405 =200 $uri;. , , ...
3. error_page
error_page, , :
: error_page
recursive_error_pages , . :
Enables or disables doing several redirects using the error_page directive. The number of such redirects is limited.
, recursive_error_pages on; , error_page 405.
, - $uri, WordPress URL-, GET. , WordPress , , , .
; 504. , :
: GET
, error.html POST. NGINX POST GET, . , , - (, @ ), internal .
, @error_page, - internal, :
location /error_page {
internal;
root /usr/syno/share/nginx;
rewrite (.*) /error.html break;
}
error_page, :
error_page 403 404 500 502 503 504 /error_page;
: NGINX.