Advertisement
Guest User

Untitled

a guest
May 22nd, 2022
17
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {   server_name op3.domain.com www.op3.domain.com;
  2.  
  3.   add_header X-Xss-Protection "1; mode=block" always;
  4.   add_header X-Content-Type-Options "nosniff" always;
  5.   access_log /home/nginx/domains/op3.domain.com/log/access.log combined buffer=256k flush=5m;
  6.   error_log /home/nginx/domains/op3.domain.com/log/error.log;
  7.   include /usr/local/nginx/conf/autoprotect/op3.domain.com/autoprotect-op3.domain.com.conf;
  8.   root /home/nginx/domains/op3.domain.com/public;
  9.   include /usr/local/nginx/conf/503include-main.conf;
  10.   location / {
  11.   include /usr/local/nginx/conf/503include-only.conf;
  12.  
  13. # OPENCART
  14. try_files $uri @opencart;
  15.  
  16.   }
  17.  
  18.   include /usr/local/nginx/conf/php.conf;
  19.   include /usr/local/nginx/conf/pre-staticfiles-local-op3.domain.com.conf;
  20.   include /usr/local/nginx/conf/pre-staticfiles-global.conf;
  21.   include /usr/local/nginx/conf/staticfiles.conf;
  22.   include /usr/local/nginx/conf/drop.conf;
  23.   #include /usr/local/nginx/conf/errorpage.conf;
  24.   include /usr/local/nginx/conf/vts_server.conf;
  25. include /usr/local/nginx/conf/opencart.conf;
  26. }
  27.  
  28.  
  29.  
  30.  
  31. location ~* \/\.ht {         deny all;    }
  32. location ~* (\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt) {         deny all;     }
  33. location ~* \/\.git {        deny all;    }
  34. location ~* \/image.+(\.php) {              deny all;    }
  35. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {        expires max;        log_not_found off;    }
  36. location = /sitemap.xml {        rewrite ^(.*)$ /index.php?route=extension/feed/google_sitemap last;    }
  37. location = /googlebase.xml {        rewrite ^(.*)$ /index.php?route=extension/feed/google_base last;    }
  38. location /system {        rewrite ^/system/storage/(.*) /index.php?route=error/not_found last;    }
  39. #location = /favicon.ico {        log_not_found off;        access_log off;    }
  40. #location = /robots.txt {        allow all;        log_not_found off;        access_log off;    }
  41.  
  42. location @opencart { rewrite ^/(.+)$ /index.php?_route_=$1 last;     }
  43.  
Advertisement
RAW Paste Data Copied
Advertisement