E
E
Evgeny Samoldin2020-08-27 13:08:44
Nginx
Evgeny Samoldin, 2020-08-27 13:08:44

Seo Pro - OpenCart 3 how to fix the error?

Good day to all!
Help solve the problem with Seo Pro on OpenCart 3. Bottom

line:
Everything seems to be working fine, or it worked, the old links work fine, but today I created a new article and attached the seo url "administratsiyam-naselyonnykh-punktov" to it.
When I go to the address , I get a 404 error,

an error in the log

(2020/08/27 12:56:21 [error] 3254#3254: *1 openat() "/var/www/topiari-king/data/www/topiari-king.ru/www/administratsiyam-naselyonnykh-punktov " failed (2: No such file or directory), client: 172.16.1.1, server: topiari-king.ru, request: "GET /administratsiyam-naselyonnykh-punktov HTTP/2.0", host: "topiari-king.ru" )


For some reason, the request happens as if to a directory and not to a link. The url itself appeared in the oc_seo_url database.
Cleaning the cache does not help, the module has been reinstalled.
Help me please.

Current config NGIX + PHP-FPM 7.3
server {
  server_name topiari-king.ru www.topiari-king.ru;
  charset UTF-8;
  index index.php index.html;
  disable_symlinks if_not_owner from=$root_path;
  include /etc/nginx/vhosts-includes/*.conf;
  include /etc/nginx/vhosts-resources/topiari-king.ru/*.conf;
  access_log /var/www/httpd-logs/topiari-king.ru.access.log;
  error_log /var/www/httpd-logs/topiari-king.ru.error.log notice;
  ssi on;
  set $root_path /var/www/topiari-king/data/www/topiari-king.ru/www;
  root $root_path;
  
    if ($http_user_agent ~* (11A465|Ahrefs|ArchiveBot|AspiegelBot|Baiduspider|bingbot|BLEXBot|Bytespider|CCBot|Curebot|Daum|Detectify|DotBot|Grapeshot|heritrix|Kinza|LieBaoFast|Linguee|LMY47V|MauiBot|Mb2345Browser|MegaIndex|MicroMessenger|MJ12bot|MQQBrowser|PageFreezer|PetalBot|PiplBot|Riddler|Screaming.Frog|Search365bot|SearchBlox|Seekport|SemanticScholarBot|SemrushBot|SEOkicks|serpstatbot|Siteimprove.com|Sogou.web.spider|trendictionbot|TurnitinBot|UCBrowser|weborama-fetcher|Vagabondo|VelenPublicWebCrawler|YisouSpider)){
 
        return 403;
 
}
  
    location = /sitemap.xml {
        rewrite ^(.*)$ /index.php?route=feed/google_sitemap break;
}
    location = /googlebase.xml {
        rewrite ^(.*)$ /index.php?route=feed/google_base break;
}
    location = /favicon.ico {
        log_not_found off;
        access_log off;
}
    location = /apple-touch-icon.png {
        log_not_found off;
        access_log off;
}
    location = /apple-touch-icon-precomposed.png {
        log_not_found off;
        access_log off;
}
  
  location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
}
  
    location / {
            try_files $uri @opencart;
                location ~ [^/]\.ph(p\d*|tml)$ {
                        try_files /does_not_exists @php;
                }
        }
        location @opencart {
            rewrite ^/(.+)$ /index.php?_route_=$1 last;
    }
    
    location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
      expires 180d;
    }
    
    location /admin { 
    index index.php;
    location ~ [^/]\.ph(p\d*|tml)$ {
        try_files /does_not_exists @php;
    }
}
    location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp)$ {
      expires 180d;
      log_not_found off;
      add_header Pragma public;
      add_header Cache-Control "public, must-revalidate, proxy-revalidate";
      try_files $uri $uri/ @php;
    }
  # Fix for Firefox issue with cross site font icons
  location ~* \.(eot|otf|ttf|woff)$ {
    add_header Access-Control-Allow-Origin *;
  }
  location ~* (\.(tpl|ini))$ { deny all; }
  location ~* \.(engine|inc|info|ini|install|log|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
    deny all;
  }
  location ~ /\. {
    access_log off;
    log_not_found off;
    deny all;
  }
  location ~ ~$ {
    access_log off;
    log_not_found off;
    deny all;
  }
  location ~* /(?:cache|logs|image|download)/.*\.php$ {
    deny all;
  }
  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 @php {
    fastcgi_index index.php;
    fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]";
    fastcgi_pass unix:/var/www/php-fpm/topiari-king.sock;
    fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
    try_files $uri =404;
    include fastcgi_params;
  }
  return 301 https://$host:443$request_uri;
  location /www/webstat/ {
    location ~ [^/]\.ph(p\d*|tml)$ {
      try_files /does_not_exists @php;
    }
    charset UTF-8;
    index index.html;
    auth_basic "Access limited by ISPmanager";
    auth_basic_user_file /var/www/topiari-king/data/etc/access.topiari-king.ru.VihQs/3k.passwd;
  }
  listen 172.16.1.5:80;
  location /webstat/ {
    location ~ [^/]\.ph(p\d*|tml)$ {
      try_files /does_not_exists @php;
    }
  }
}
server {
  server_name topiari-king.ru www.topiari-king.ru;
  ssl_certificate "/var/www/httpd-cert/topiari-king/topiari-king.ru_le1.crtca";
  ssl_certificate_key "/var/www/httpd-cert/topiari-king/topiari-king.ru_le1.key";
  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;";
  ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  charset UTF-8;
  index index.php index.html;
  disable_symlinks if_not_owner from=$root_path;
  include /etc/nginx/vhosts-includes/*.conf;
  include /etc/nginx/vhosts-resources/topiari-king.ru/*.conf;
  access_log /var/www/httpd-logs/topiari-king.ru.access.log;
  error_log /var/www/httpd-logs/topiari-king.ru.error.log notice;
  ssi on;
  set $root_path /var/www/topiari-king/data/www/topiari-king.ru/www;
  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_user_agent ~* (11A465|Ahrefs|ArchiveBot|AspiegelBot|Baiduspider|bingbot|BLEXBot|Bytespider|CCBot|Curebot|Daum|Detectify|DotBot|Grapeshot|heritrix|Kinza|LieBaoFast|Linguee|LMY47V|MauiBot|Mb2345Browser|MegaIndex|MicroMessenger|MJ12bot|MQQBrowser|PageFreezer|PetalBot|PiplBot|Riddler|Screaming.Frog|Search365bot|SearchBlox|Seekport|SemanticScholarBot|SemrushBot|SEOkicks|serpstatbot|Siteimprove.com|Sogou.web.spider|trendictionbot|TurnitinBot|UCBrowser|weborama-fetcher|Vagabondo|VelenPublicWebCrawler|YisouSpider)){
 
        return 403;
 
}
  
  location = /sitemap.xml {
        rewrite ^(.*)$ /index.php?route=feed/google_sitemap break;
}
    location = /googlebase.xml {
        rewrite ^(.*)$ /index.php?route=feed/google_base break;
}
    location = /favicon.ico {
        log_not_found off;
        access_log off;
}
    location = /apple-touch-icon.png {
        log_not_found off;
        access_log off;
}
    location = /apple-touch-icon-precomposed.png {
        log_not_found off;
        access_log off;
}
  
  location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
}
  
  location / {
            try_files $uri @opencart;
                location ~ [^/]\.ph(p\d*|tml)$ {
                        try_files /does_not_exists @php;
                }
        }
        location @opencart {
            rewrite ^/(.+)$ /index.php?_route_=$1 last;
    }
    
    location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
      expires 180d;
    }

    location /admin { 
    index index.php;
    location ~ [^/]\.ph(p\d*|tml)$ {
        try_files /does_not_exists @php;
    }
}
    location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp)$ {
      expires 180d;
      log_not_found off;
      add_header Pragma public;
      add_header Cache-Control "public, must-revalidate, proxy-revalidate";
      try_files $uri $uri/ @php;
    }
  # Fix for Firefox issue with cross site font icons
  location ~* \.(eot|otf|ttf|woff)$ {
    add_header Access-Control-Allow-Origin *;
  }
  location ~* (\.(tpl|ini))$ { deny all; }
  location ~* \.(engine|inc|info|ini|install|log|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
    deny all;
  }
  location ~ /\. {
    access_log off;
    log_not_found off;
    deny all;
  }
  location ~ ~$ {
    access_log off;
    log_not_found off;
    deny all;
  }
  location ~* /(?:cache|logs|image|download)/.*\.php$ {
    deny all;
  }
  
  location @php {
    fastcgi_index index.php;
    fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]";
    fastcgi_pass unix:/var/www/php-fpm/topiari-king.sock;
    fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
    try_files $uri =404;
    include fastcgi_params;
  }
  location /www/webstat/ {
    location ~ [^/]\.ph(p\d*|tml)$ {
      try_files /does_not_exists @php;
    }
    charset UTF-8;
    index index.html;
    auth_basic "Access limited by ISPmanager";
    auth_basic_user_file /var/www/topiari-king/data/etc/access.topiari-king.ru.VihQs/3k.passwd;
  }
  listen 172.16.1.5:443 ssl http2;
  location /webstat/ {
    location ~ [^/]\.ph(p\d*|tml)$ {
      try_files /does_not_exists @php;
    }
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question