(110: Connection timed out
Tyrdl2
nginx-forum at forum.nginx.org
Fri Jan 1 22:09:52 UTC 2016
Hey, This is my first post on this forum. I do not speak good English but I
will try to write clearly.
I have problem with Nginx + php-fpm and fast cgi connection time out.
My error log
2016/01/01 22:58:58 [error] 2367#0: *13 upstream timed out (110: Connection
timed out) while reading response header from upstream, client:
10.10.12.101, server: xxx.org.pl, request: "GET /favicon.ico HTTP/1.1",
upstream: "fastcgi://127.0.0.1:9000", host: "xxx.org.pl", referrer:
"http://xxx.org.pl/"
and my nginx .conf
server {
listen 80;
server_name xxx.pvp.org.pl;
access_log /var/log/nginx/access-forum.log;
error_log /var/log/nginx/error-forum.log;
#server_tokens off;
root /home/produkcja/forum;
index index.html index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~* \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_read_timeout 300;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263819,263819#msg-263819
More information about the nginx
mailing list