2
I have a blog and for a few days it started to give the following error in some pages.
404 Not Found nginx/1.6.2 (Ubuntu)
The error log is returning:
2016/02/02 10:44:12 [error] 612#0: *553172 connect() to unix:/var/run/php5-fpm.sock failed
(11: Resource temporarily unavailable) while connecting to upstream, client: xxx.xxx.x.xxx, server:
www.blogdeti.com.br , request: "POST /xmlrpc.php HTTP/1.0",
upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "xxx.xxx.xxx.xxx"
My virtual host settings:
server {
listen 80 default_server;
listen [::]:80 ipv6only=on default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name www.blogdeti.com.br;
location / {
try_files $uri $uri/ /index.php?q=$uri&args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
My hosting is digital Ocean and I tried to send a support ticket but they couldn’t help me.
You came to see the settings on
sites-enable
? it seems that it is not finding the root of the site– Jeferson Assis
Yes, I’ll put the virtual host settings in the question.
– Any Karolyne Galdino