Периодически в логе появляется сообщение:
2015/01/22 18:19:34 [error] 25058#0: *631878 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 85.***.***.14, server: rtfm.co.ua, request: “POST /wp-admin/nav-menus.php?action=edit&menu=37 HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9003”, host: “rtfm.co.ua”, referrer: “http://rtfm.co.ua/wp-admin/nav-menus.php?action=edit&menu=37”
В модуле HttpFastcgiModule
имеется особая директива fastcgi_read_timeout:
Syntax: | fastcgi_read_timeout time; |
---|---|
Default: |
fastcgi_read_timeout 60s; |
Context: | http , server , location |
Редактриуем файл настроек хоста:
location ~ .php$ { include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9003; fastcgi_read_timeout 120; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
Проверяем:
# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
Перезапускаем:
# service nginx restart Stopping nginx: [ OK ] Starting nginx: [ OK ]
Готово.