New nginx role
This commit is contained in:
parent
71caecc508
commit
7956d09b3e
22 changed files with 122 additions and 130 deletions
8
roles/nginx/files/snippets/no-unsafe-files.conf
Normal file
8
roles/nginx/files/snippets/no-unsafe-files.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
disable_symlinks on from=$document_root;
|
||||
|
||||
# Do not serve dotfiles.
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue