setup default nginx ssl/security configuration for vagrant
This commit is contained in:
parent
18ae1e15f4
commit
3c6b779c44
6 changed files with 103 additions and 7 deletions
19
salt/roots/webserver/nginx-security.conf
Normal file
19
salt/roots/webserver/nginx-security.conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Security - Basic configuration
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
expires max;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Deny access to hidden files
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue