+ latest extensions - deployed nginx, apache, php 74 & 81, nvm, automatic databases import and phpmyadmin with nginx basic auth
+ dhcp dnsmasq server playbook for create inner server network #861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
29
playbooks/debops/files/etc/nginx/includes.d/staticfiles.conf
Normal file
29
playbooks/debops/files/etc/nginx/includes.d/staticfiles.conf
Normal file
@ -0,0 +1,29 @@
|
||||
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 ~* \.(xml|xls)$ {
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~* \.(tpl|ini|sh) {
|
||||
deny all;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user