Advertisement
Guest User

config especifica opencar nginx

a guest
Oct 25th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #especifico opencart
  2.     location /image/data {
  3.         autoindex on;
  4.     }
  5.     location /admin {
  6.         index index.php;
  7.     }
  8.     location / {
  9.         try_files $uri @opencart;
  10.     }
  11.     location @opencart {
  12.         rewrite ^/(.+)$ /index.php?_route_=$1 last;
  13.     }
  14.     location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
  15.         deny all;
  16.     }
  17.     location ~ /\. {
  18.         deny all;
  19.         access_log off;
  20.         log_not_found off;
  21.     }
  22.     location ~* .(woff|eot|ttf|svg|mp4|webm|jpg|jpeg|png|gif|ico|css|js)$ {
  23.         expires 365d;
  24.     }
  25.     location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
  26.         expires max;
  27.         log_not_found off;
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement