You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
657 B

  1. rewrite ^(.*)\.(\d+)\.(css|js)$ $1.$3 break;
  2. location ~* \.(jpg|jpeg|gif|png|svg|ico)$ {
  3. access_log off;
  4. expires max;
  5. log_not_found off;
  6. error_page 404 = /empty;
  7. #location ~ ^/\d*.jpg$ {
  8. # default_type 'image/jpeg';
  9. # content_by_lua_file image.lua;
  10. #}
  11. }
  12. #location ~ ^/\d*.html$ {
  13. # rewrite_by_lua_file redirect_to_product.lua;
  14. #}
  15. location = /empty {
  16. expires 0;
  17. empty_gif;
  18. }
  19. location ~* \.(eot|ttf|woff|pdf|css|js)$ {
  20. access_log off;
  21. expires max;
  22. }
  23. #location ~* \.(xml|xls)$ {
  24. # add_header Cache-Control "no-cache";
  25. #}
  26. location ~ /\. {
  27. deny all;
  28. }
  29. location ~* \.(tpl|ini|sh) {
  30. deny all;
  31. }