Post by 00001 » Sun May 22, 2022 12:57 pm

Site set to nginx+php-rmh (Centmin Mod), php7.4, OP3.0.3.8.
Now there are old settings, from 2.3.

There are no errors, but I'm not an expert, please check

Code: Select all

server {   server_name domain.com www.domain.com;
 add_header X-Xss-Protection "1; mode=block" always;
 add_header X-Content-Type-Options "nosniff" always;
  access_log /home/nginx/domains/domain.com/log/access.log combined buffer=256k flush=5m;
  error_log /home/nginx/domains/domain.com/log/error.log;
  include /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf;
  root /home/nginx/domains/domain.com/public;
  include /usr/local/nginx/conf/503include-main.conf;
  location / {   include /usr/local/nginx/conf/503include-only.conf;   }
  include /usr/local/nginx/conf/php.conf;
  include /usr/local/nginx/conf/pre-staticfiles-local-domain.com.conf;
  include /usr/local/nginx/conf/pre-staticfiles-global.conf;
  include /usr/local/nginx/conf/staticfiles.conf;
  include /usr/local/nginx/conf/drop.conf;
  include /usr/local/nginx/conf/vts_server.conf;
include /usr/local/nginx/conf/opencart.conf;
}
503include-only.conf

Code: Select all

     error_page 503 @maintenance;
     location @maintenance {      rewrite ^ /maintenance.html break;      }
autoprotect-domain.com.conf (automatic, based on .htaccess)

Code: Select all

location ~* ^/system/storage/session/ { allow 127.0.0.1; deny all; }
location ~* ^/system/ { allow 127.0.0.1; deny all; }
opencart.conf

Code: Select all

location ~* \/\.ht { 		deny all;	}
location ~* (\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt) { 		deny all; 	}
location ~* \/\.git {		deny all;	}
location ~* \/image.+(\.php) {       		deny all;	}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {		expires max;		log_not_found off;	}
location = /sitemap.xml {		rewrite ^(.*)$ /index.php?route=extension/feed/google_sitemap last;	}
location = /googlebase.xml {	    rewrite ^(.*)$ /index.php?route=extension/feed/google_base last;	}
##location /system {	    rewrite ^/system/storage/(.*) /index.php?route=error/not_found last;	}
location @opencart { rewrite ^/(.+)$ /index.php?_route_=$1 last; 	}

Newbie

Posts

Joined
Sat Sep 07, 2019 2:58 am

Post by paulfeakins » Mon May 23, 2022 7:05 pm

I have no idea what you're asking?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 269 guests