Initial commit
This commit is contained in:
21
config/nginx/includes.d/staticfiles.conf
Normal file
21
config/nginx/includes.d/staticfiles.conf
Normal file
@ -0,0 +1,21 @@
|
||||
rewrite "^(.*)\.(\d{10})\.(css|js)$" $1.$3 break;
|
||||
location ~* \.(jpg|jpeg|gif|png|svg|ico)$ {
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user