Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #especifico opencart
- location /image/data {
- autoindex on;
- }
- location /admin {
- index index.php;
- }
- location / {
- try_files $uri @opencart;
- }
- location @opencart {
- rewrite ^/(.+)$ /index.php?_route_=$1 last;
- }
- location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
- deny all;
- }
- location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
- }
- location ~* .(woff|eot|ttf|svg|mp4|webm|jpg|jpeg|png|gif|ico|css|js)$ {
- expires 365d;
- }
- location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
- expires max;
- log_not_found off;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement