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.

21 lines
398 B

5 years ago
  1. #rewrite "^(.*)\.(\d{10})\.(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. }
  8. location = /empty {
  9. expires 0;
  10. empty_gif;
  11. }
  12. location ~* \.(eot|ttf|woff|pdf|css|js)$ {
  13. access_log off;
  14. expires max;
  15. }
  16. location ~ /\. {
  17. deny all;
  18. }
  19. location ~* \.(tpl|ini|sh) {
  20. deny all;
  21. }