2021-06-01 10:03:24 +03:00
|
|
|
#rewrite "^(.*)\.(\d{10})\.(css|js)$" $1.$3 break;
|
2021-11-16 21:35:03 +03:00
|
|
|
location ~* \.(gif|svg|ico)$ {
|
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
error_page 404 = /empty;
|
|
|
|
}
|
|
|
|
location ~* \.jpge?g$ {
|
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
error_page 404 = /empty;
|
|
|
|
}
|
|
|
|
location ~* \.png$ {
|
2020-02-20 22:56:41 +03:00
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
error_page 404 = /empty;
|
|
|
|
}
|
|
|
|
location = /empty {
|
|
|
|
expires 0;
|
|
|
|
empty_gif;
|
|
|
|
}
|
|
|
|
location ~* \.(eot|ttf|woff|pdf|css|js)$ {
|
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
}
|
|
|
|
location ~ /\. {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
location ~* \.(tpl|ini|sh) {
|
|
|
|
deny all;
|
|
|
|
}
|