Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server { server_name op3.domain.com www.op3.domain.com;
- add_header X-Xss-Protection "1; mode=block" always;
- add_header X-Content-Type-Options "nosniff" always;
- access_log /home/nginx/domains/op3.domain.com/log/access.log combined buffer=256k flush=5m;
- error_log /home/nginx/domains/op3.domain.com/log/error.log;
- include /usr/local/nginx/conf/autoprotect/op3.domain.com/autoprotect-op3.domain.com.conf;
- root /home/nginx/domains/op3.domain.com/public;
- include /usr/local/nginx/conf/503include-main.conf;
- location / {
- include /usr/local/nginx/conf/503include-only.conf;
- # OPENCART
- try_files $uri @opencart;
- }
- include /usr/local/nginx/conf/php.conf;
- include /usr/local/nginx/conf/pre-staticfiles-local-op3.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/errorpage.conf;
- include /usr/local/nginx/conf/vts_server.conf;
- include /usr/local/nginx/conf/opencart.conf;
- }
- 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 = /favicon.ico { log_not_found off; access_log off; }
- #location = /robots.txt { allow all; log_not_found off; access_log off; }
- location @opencart { rewrite ^/(.+)$ /index.php?_route_=$1 last; }
Advertisement
Add Comment
Please, Sign In to add comment