Error 404 Not Found (Nginx)

Asked

Viewed 1,682 times

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

  • Yes, I’ll put the virtual host settings in the question.

1 answer

1

I see your log and I have the following analysis:

The file or the path to it is ... Let’s analyze the translation of the error

Let’s analyze the translation of the error :::

02/02/2016 10:44:12 [erro] 612 # 0: * 553172 conectar () ao unix: /var/run/php5-fpm.sock falhou
   (11: Recurso temporariamente indisponível) durante a conexão com o upstream, cliente: xxx.xxx.x.xxx, servidor:
   www.blogdeti.com.br, solicitação: "POST /xmlrpc.php HTTP / 1.0",
   upstream: "fastcgi: // unix: /var/run/php5-fpm.sock:", host: "xxx.xxx.xxx.xxx"

The solution to the problem is as follows...

Check the door What if the data... The server name is missing the version without WWW.

www is a different redirect in DNS settings

Accessing

<<< http://www. or https://blogdeti.com This is the crediting part. And this is a default. When you set up SSL.

The most popular Ltsc as well as Cloudflare

Unlike a host name... host.dominio.com

Browser other questions tagged

You are not signed in. Login or sign up in order to post.