Адаптировать mod rewrite .htaccess в nginx

Может кто то тоже поможет переделать .htaccess в nginx.conf
Примерно так:
Код:
server {
    server_name www.site.ru;
    return 301 $scheme://site.ru$request_uri;
}

server {
    server_name site.ru;

    add_header "X-UA-Compatible" "IE=Edge,chrome=1";

    if (!-f $request_filename) {
        rewrite ^([^.]*[^/.])$  $1/ permanent;
    }

    if ($request_uri ~ "^([^?]+)\.php($|\?.*)") {
        return 301 $1/$2;
    }

    if ($request_uri ~ "^([^?]+)index\.php/?(.*)") {
        return 301 $1$2;
    }

    location ~ \.(css|js|phtml|shtml|html|xml)$ {
        add_header "Cache-Control" "private, must-revalidate";
    }

    location ~ ^(.+\.php)/?$ {
        try_files $1 =404;

        add_header Cache-Control "private, must-revalidate";

        # а тут добавить свой fastcgi_pass
    }

    location ~ ^(/.+)/$ {
        try_files   $uri $uri/ $1.php/;
    }
}
 
Не вышло пишет при переходе на страничку любую!

500 Внутренняя Ошибка Сервера

Может что не так делаю вот файл nginx

Код:
server {
    server_name luzynka.ru www.luzynka.ru;
    charset off;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    include /etc/nginx/vhosts-resources/luzynka.ru/*.conf;
    access_log /var/www/httpd-logs/luzynka.ru.access.log;
    error_log /var/www/httpd-logs/luzynka.ru.error.log notice;
    return 301 https://$host:443$request_uri;
    set $root_path /var/www/www-root/data/www/luzynka.ru;
    root $root_path;
    listen 185.203.242.118:80;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
    location / {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        try_files $uri $uri/ /index.php?q=$uri&$args;
    }
    location /admin/ {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.ISMvKXpX.passwd;
    }
    ssi on;
    location /webstat/ {
        charset UTF-8;
        index index.html;
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.VihQs/3k.passwd;
    }
    expires 7d;
    location @php {
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        try_files $uri =404;
        include fastcgi_params;
    }
}
server {
    server_name luzynka.ru www.luzynka.ru;
    ssl on;
    ssl_certificate "/var/www/httpd-cert/www-root/Comodo Positive SSL.crtca";
    ssl_certificate_key "/var/www/httpd-cert/www-root/Comodo Positive SSL.key";
    ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
    charset off;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    include /etc/nginx/vhosts-resources/luzynka.ru/*.conf;
    access_log /var/www/httpd-logs/luzynka.ru.access.log;
    error_log /var/www/httpd-logs/luzynka.ru.error.log notice;
    set $root_path /var/www/www-root/data/www/luzynka.ru;
    root $root_path;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
    if ($http_referer !~* ^($|http://|https://) ) {
        return 403;
    }
    location / {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        try_files $uri $uri/ /index.php?q=$uri&$args;
    }
    location /admin/ {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.ISMvKXpX.passwd;
    }
    ssi on;
    location /webstat/ {
        charset UTF-8;
        index index.html;
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.VihQs/3k.passwd;
    }
    ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
    ssl_prefer_server_ciphers on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    add_header Strict-Transport-Security "max-age=31536000;";
    listen 185.203.242.118:443 http2;
    expires 7d;
    location @php {
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        try_files $uri =404;
        include fastcgi_params;
    }
}
 
А при возникновении 500 ошибки есть ли какие-нибудь подробности о причинах в файле luzynka.ru.error.log
 
Ошибок не было!Но немного поставил по другому и почти все заработало на все страницы был переход но проблема вылезла в другом!Сейчас на апаче!
Для просмотра ссылки Войди или Зарегистрируйся
Потом на FastCGI (Nginx + PHP-FPM)
Для просмотра ссылки Войди или Зарегистрируйся
Витрина ID0 установленна
ID витрины не видит оно 0
И в Для просмотра ссылки Войди или Зарегистрируйся
500 Внутренняя Ошибка Сервера
 
В логах вот что!
2018/06/10 12:04:31 [crit] 30840#30840: *605613 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 178.176.113.208, server: luzynka.ru, request: "GET /bancode/?id=18549 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:04:31 [crit] 30837#30837: *605616 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 178.176.113.208, server: luzynka.ru, request: "GET /bancode/?id=18550 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:04:31 [crit] 30837#30837: *605617 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 178.176.113.208, server: luzynka.ru, request: "GET /bancode/?id=18551 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:04:31 [crit] 30837#30837: *605615 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 178.176.113.208, server: luzynka.ru, request: "GET /lincode/?id=18545 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:04:31 [crit] 30840#30840: *605614 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 178.176.113.208, server: luzynka.ru, request: "GET /bancode/?id=18548 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:04:32 [crit] 30839#30839: *605619 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 178.176.113.208, server: luzynka.ru, request: "GET /bancode/?id=18553 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:17:21 [error] 5424#5424: *614779 could not find named location "@PHP", client: 89.254.251.230, server: luzynka.ru, request: "GET /admin/ HTTP/2.0", host: "luzynka.ru"
2018/06/10 12:23:00 [error] 5425#5425: *620781 openat() "/var/www/www-root/data/www/luzynka.ru/addblock.html" failed (2: No such file or directory), client: 186.2.160.38, server: luzynka.ru, request: "GET /addblock.html HTTP/1.1", host: "luzynka.ru"
 
конфиг такой зделал!

Код:
server {
    server_name luzynka.ru www.luzynka.ru;
    charset off;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    include /etc/nginx/vhosts-resources/luzynka.ru/*.conf;
    access_log /var/www/httpd-logs/luzynka.ru.access.log;
    error_log /var/www/httpd-logs/luzynka.ru.error.log notice;
    return 301 https://$host:443$request_uri;
    set $root_path /var/www/www-root/data/www/luzynka.ru;
    root $root_path;
    listen 185.203.242.118:80;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
add_header "X-UA-Compatible" "IE=Edge,chrome=1";

    if (!-f $request_filename) {
        rewrite ^([^.]*[^/.])$  $1/ permanent;
    }

    if ($request_uri ~ "^([^?]+)\.php($|\?.*)") {
        return 301 $1/$2;
    }

    if ($request_uri ~ "^([^?]+)index\.php/?(.*)") {
        return 301 $1$2;
    }

    location ~ \.(css|js|phtml|shtml|html|xml)$ {
        add_header "Cache-Control" "private, must-revalidate";
    }
    location /admin/ {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.ISMvKXpX.passwd;
    }
    ssi on;
    location /webstat/ {
        charset UTF-8;
        index index.html;
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.VihQs/3k.passwd;
    }
    expires 7d;
     location ~ ^(.+\.php)/?$ {
        try_files $1 =404;

        add_header Cache-Control "private, must-revalidate";

        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        include fastcgi_params;
    }
location ~ ^(/.+)/$ {
        try_files   $uri $uri/ $1.php/;
    }
}
server {
    server_name luzynka.ru www.luzynka.ru;
    ssl on;
    ssl_certificate "/var/www/httpd-cert/www-root/Comodo Positive SSL.crtca";
    ssl_certificate_key "/var/www/httpd-cert/www-root/Comodo Positive SSL.key";
    ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
    charset off;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    include /etc/nginx/vhosts-resources/luzynka.ru/*.conf;
    access_log /var/www/httpd-logs/luzynka.ru.access.log;
    error_log /var/www/httpd-logs/luzynka.ru.error.log notice;
    set $root_path /var/www/www-root/data/www/luzynka.ru;
    root $root_path;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
add_header "X-UA-Compatible" "IE=Edge,chrome=1";

    if (!-f $request_filename) {
        rewrite ^([^.]*[^/.])$  $1/ permanent;
    }

    if ($request_uri ~ "^([^?]+)\.php($|\?.*)") {
        return 301 $1/$2;
    }

    if ($request_uri ~ "^([^?]+)index\.php/?(.*)") {
        return 301 $1$2;
    }

    location ~ \.(css|js|phtml|shtml|html|xml)$ {
        add_header "Cache-Control" "private, must-revalidate";
    }
    location /admin/ {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.ISMvKXpX.passwd;
    }
    ssi on;
    location /webstat/ {
        charset UTF-8;
        index index.html;
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.VihQs/3k.passwd;
    }
    ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
    ssl_prefer_server_ciphers on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    add_header Strict-Transport-Security "max-age=31536000;";
    listen 185.203.242.118:443 http2;
    expires 7d;
location ~ ^(.+\.php)/?$ {
        try_files $1 =404;
        add_header Cache-Control "private, must-revalidate";
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        include fastcgi_params;
    }
    location ~ ^(/.+)/$ {
        try_files   $uri $uri/ $1.php/;
    }
}
 
В первом блоке server стоит listen 185.203.242.118:80; и return 301 Для просмотра ссылки Войди или Зарегистрируйся
Т.е. редирект только с http на https и остальные блоки location тут не нужны.
В втором блоке server где стоит listen 185.203.242.118:443 http2; потерялся блок location @PHP
В логах об этом написано:
2018/06/10 12:17:21 [error] 5424#5424: *614779 could not find named location "@PHP", client: 89.254.251.230, server: luzynka.ru, request: "GET /admin/ HTTP/2.0", host: "luzynka.ru"
 
То же самое!
Конфиг!
Код:
server {
    server_name luzynka.ru www.luzynka.ru;
    charset off;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    include /etc/nginx/vhosts-resources/luzynka.ru/*.conf;
    access_log /var/www/httpd-logs/luzynka.ru.access.log;
    error_log /var/www/httpd-logs/luzynka.ru.error.log notice;
    return 301 https://$host:443$request_uri;
    set $root_path /var/www/www-root/data/www/luzynka.ru;
    root $root_path;
    listen 185.203.242.118:80;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
add_header "X-UA-Compatible" "IE=Edge,chrome=1";

    if (!-f $request_filename) {
        rewrite ^([^.]*[^/.])$  $1/ permanent;
    }

    if ($request_uri ~ "^([^?]+)\.php($|\?.*)") {
        return 301 $1/$2;
    }

    if ($request_uri ~ "^([^?]+)index\.php/?(.*)") {
        return 301 $1$2;
    }

    location ~ \.(css|js|phtml|shtml|html|xml)$ {
        add_header "Cache-Control" "private, must-revalidate";
    }
     location ~ ^(.+\.php)/?$ {
        try_files $1 =404;

        add_header Cache-Control "private, must-revalidate";

        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        include fastcgi_params;
    }
location ~ ^(/.+)/$ {
        try_files   $uri $uri/ $1.php/;
    }
    ssi on;
    expires 7d;
    location / {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
    }
    location /webstat/ {
        charset UTF-8;
        index index.html;
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.VihQs/3k.passwd;
    }
    location @php {
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        try_files $uri =404;
        include fastcgi_params;
    }
    location /admin/ {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.ISMvKXpX.passwd;
    }
}
server {
    server_name luzynka.ru www.luzynka.ru;
    ssl on;
    ssl_certificate "/var/www/httpd-cert/www-root/Comodo Positive SSL.crtca";
    ssl_certificate_key "/var/www/httpd-cert/www-root/Comodo Positive SSL.key";
    ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
    charset off;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    include /etc/nginx/vhosts-resources/luzynka.ru/*.conf;
    access_log /var/www/httpd-logs/luzynka.ru.access.log;
    error_log /var/www/httpd-logs/luzynka.ru.error.log notice;
    set $root_path /var/www/www-root/data/www/luzynka.ru;
    root $root_path;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
add_header "X-UA-Compatible" "IE=Edge,chrome=1";

    if (!-f $request_filename) {
        rewrite ^([^.]*[^/.])$  $1/ permanent;
    }

    if ($request_uri ~ "^([^?]+)\.php($|\?.*)") {
        return 301 $1/$2;
    }

    if ($request_uri ~ "^([^?]+)index\.php/?(.*)") {
        return 301 $1$2;
    }

    location ~ \.(css|js|phtml|shtml|html|xml)$ {
        add_header "Cache-Control" "private, must-revalidate";
    }
    ssi on;
    ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
    ssl_prefer_server_ciphers on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    add_header Strict-Transport-Security "max-age=31536000;";
    expires 7d;
location ~ ^(.+\.php)/?$ {
        try_files $1 =404;
        add_header Cache-Control "private, must-revalidate";
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        include fastcgi_params;
    }
    location ~ ^(/.+)/$ {
        try_files   $uri $uri/ $1.php/;
    }
    location / {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
    }
    location /webstat/ {
        charset UTF-8;
        index index.html;
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.VihQs/3k.passwd;
    }
    location @php {
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f support@luzynka.ru";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        try_files $uri =404;
        include fastcgi_params;
    }
    location /admin/ {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        auth_basic "Access limited by ISPmanager";
        auth_basic_user_file /var/www/www-root/data/etc/access.luzynka.ru.ISMvKXpX.passwd;
    }
    listen 185.203.242.118:443 http2;
}

Ошибки

2018/06/10 12:17:21 [error] 5424#5424: *614779 could not find named location "@PHP", client: 89.254.251.230, server: luzynka.ru, request: "GET /admin/ HTTP/2.0", host: "luzynka.ru"
2018/06/10 12:23:00 [error] 5425#5425: *620781 openat() "/var/www/www-root/data/www/luzynka.ru/addblock.html" failed (2: No such file or directory), client: 186.2.160.38, server: luzynka.ru, request: "GET /addblock.html HTTP/1.1", host: "luzynka.ru"
2018/06/10 12:33:43 [error] 9459#9459: *630255 could not find named location "@PHP", client: 186.2.160.203, server: luzynka.ru, request: "GET /admin/ HTTP/1.1", host: "luzynka.ru"
2018/06/10 12:37:17 [error] 10954#10954: *633067 could not find named location "@PHP", client: 186.2.160.161, server: luzynka.ru, request: "GET /admin/ HTTP/1.1", host: "luzynka.ru"
2018/06/10 12:37:57 [crit] 11111#11111: *633622 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 213.87.123.245, server: luzynka.ru, request: "GET /bancode/?id=21485 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:37:57 [crit] 11110#11110: *633621 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 213.87.123.245, server: luzynka.ru, request: "GET /bancode/?id=21484 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 12:37:57 [crit] 11112#11112: *633624 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 213.87.123.245, server: luzynka.ru, request: "GET /lincode/?id=21506 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
 
Все пишет!
2018/06/10 13:02:36 [crit] 23368#23368: *657354 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 186.2.160.180, server: luzynka.ru, request: "GET /bancode/?id=21836 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 13:02:36 [crit] 23369#23369: *657353 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 186.2.160.181, server: luzynka.ru, request: "GET /lincode/?id=21404 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 13:02:36 [crit] 23371#23371: *657355 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 186.2.160.169, server: luzynka.ru, request: "GET /bancode/?id=21837 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"
2018/06/10 13:02:36 [crit] 23370#23370: *657356 connect() to unix:/var/www/php-fpm/www-root.sock failed (2: No such file or directory) while connecting to upstream, client: 186.2.160.180, server: luzynka.ru, request: "GET /bancode/?id=21838 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/www-root.sock:", host: "luzynka.ru", referrer: "Для просмотра ссылки Войди или Зарегистрируйся"

Что нет дириктории
var/www/php-fpm/www-root.sock

Хотя она есть!
 
Назад
Сверху